diff --git a/.github/workflows/contributors.yml b/.github/workflows/contributors.yml index 3c755e13..7bc88687 100644 --- a/.github/workflows/contributors.yml +++ b/.github/workflows/contributors.yml @@ -41,3 +41,22 @@ jobs: PATH: '/CONTRIBUTORS.md' COMMIT_MESSAGE: 'docs(CONTRIBUTORS): update contributors' AVATAR_SHAPE: 'round' + + # This workflow will not trigger a `pull_request` event without a PAT. + # The lint workflow is not important for this type of PR, skip it and pretend it was successful: + - name: 'Get the latest commit hash from the contributors-update branch' + id: commit-data + run: 'echo "::set-output name=head_sha::$(git rev-parse contributors-update)"' + + - name: 'Commit Status: Set Lint status to success (skipped)' + uses: myrotvorets/set-commit-status-action@1.1.4 + with: + token: ${{ secrets.GITHUB_TOKEN }} + # Skipped workflows are still assigned a "success" status: + status: success + # This should be the correct commit SHA on the contributors-update branch: + sha: ${{ steps.commit-data.outputs.head_sha }} + # Name of status check to add/update: + context: 'lint' + # Optional message/note we can inline to the right of the context name in the UI: + description: "Lint skipped. Not relevant." diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 15a9a205..0856bc20 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -6,11 +6,6 @@ on: push: branches: - master - # These workflows when done will trigger this workflow too: - workflow_run: - workflows: ['Update contributors'] - types: - - completed jobs: lint: