Skip to content

Commit 0bb67c2

Browse files
committed
Update GitHub Actions configuration
- remove meaningless badge - also lint/test pushes (not just PRs) - allow running the job explicitly on-demand ("workflow dispatch") - cancel in-progress runs on PR update / push to the same branch - explicitly limit GitHub token permissions Signed-off-by: Tianon Gravi <admwiggin@gmail.com>
1 parent c05acf7 commit 0bb67c2

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/docs-and-linting.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
name: Render and Lint Documentation
22

33
on:
4+
push:
5+
branches:
6+
- main
47
pull_request:
5-
branches_ignore: []
8+
workflow_dispatch:
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
permissions:
15+
contents: read
616

717
jobs:
818
build:

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# OCI Image Format Specification
22

3-
![GitHub Actions for Docs and Linting](https://img.shields.io/github/actions/workflow/status/opencontainers/image-spec/docs-and-linting.yml?branch=main&label=GHA%20docs%20and%20linting)
43
![License](https://img.shields.io/github/license/opencontainers/image-spec)
54
[![Go Reference](https://pkg.go.dev/badge/github.com/opencontainers/image-spec.svg)](https://pkg.go.dev/github.com/opencontainers/image-spec)
65

0 commit comments

Comments
 (0)