From 41c1eda01d1d4447fd33f670d2632034afda0261 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Thu, 10 Apr 2025 10:20:57 -0700 Subject: [PATCH] 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 --- .github/workflows/docs-and-linting.yml | 10 +++++++++- README.md | 1 - 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs-and-linting.yml b/.github/workflows/docs-and-linting.yml index 5b2f82a64..a5f5e79ba 100644 --- a/.github/workflows/docs-and-linting.yml +++ b/.github/workflows/docs-and-linting.yml @@ -1,8 +1,16 @@ name: Render and Lint Documentation on: + push: pull_request: - branches_ignore: [] + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read jobs: build: diff --git a/README.md b/README.md index 5cc39c72e..abfeed594 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ # OCI Image Format Specification -![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) ![License](https://img.shields.io/github/license/opencontainers/image-spec) [![Go Reference](https://pkg.go.dev/badge/github.com/opencontainers/image-spec.svg)](https://pkg.go.dev/github.com/opencontainers/image-spec)