Skip to content

Commit

Permalink
Annotate the sources instead of commenting on the PR
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Algarvio <[email protected]>
  • Loading branch information
s0undt3ch committed Jan 13, 2023
1 parent ac9732b commit 3cd6ff7
Show file tree
Hide file tree
Showing 5 changed files with 126 additions and 205 deletions.
21 changes: 2 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ env:
COLUMNS: 160

permissions:
contents: read
contents: read # for dorny/paths-filter to fetch a list of changed files
pull-requests: read # for dorny/paths-filter to read pull requests

concurrency:
# Concurrency is defined in a way that concurrent builds against branches do
Expand All @@ -35,9 +36,6 @@ jobs:
prepare-ci:
name: Prepare CI
runs-on: ubuntu-latest
permissions:
contents: read # for dorny/paths-filter to fetch a list of changed files
pull-requests: read # for dorny/paths-filter to read pull requests
outputs:
jobs: ${{ steps.process-changed-files.outputs.jobs }}
changed-files: ${{ steps.process-changed-files.outputs.changed-files }}
Expand Down Expand Up @@ -200,20 +198,6 @@ jobs:
with:
changed-files: ${{ needs.prepare-ci.outputs.changed-files }}

pr-checks:
name: PR Checks
if: ${{ fromJSON(needs.prepare-ci.outputs.jobs)['github-hosted-runners'] && github.event_name == 'pull_request' }}
permissions:
contents: read
pull-requests: write
uses: ./.github/workflows/pr-checks-action.yml
needs:
- prepare-ci
with:
changed-files: ${{ needs.prepare-ci.outputs.changed-files }}
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}

windows-2016:
name: Windows 2016
if: ${{ fromJSON(needs.prepare-ci.outputs.jobs)['self-hosted-runners'] }}
Expand Down Expand Up @@ -479,7 +463,6 @@ jobs:
- docs
- lint
- twine-check
- pr-checks
- almalinux-8
- almalinux-9
- amazonlinux-2
Expand Down
62 changes: 0 additions & 62 deletions .github/workflows/pr-checks-action.yml

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/pre-commit-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
if: github.event_name == 'pull_request' && fromJSON(inputs.changed-files)['repo']
env:
SKIP: lint-salt,lint-tests
GH_ACTIONS_ANNOTATE: "1"
run: |
pre-commit run --show-diff-on-failure --color=always --files ${{ join(fromJSON(inputs.changed-files)['repo_files'], ' ') }}
Expand Down
124 changes: 0 additions & 124 deletions .github/workflows/scripts/pr-docstring-comments.py

This file was deleted.

Loading

0 comments on commit 3cd6ff7

Please sign in to comment.