Skip to content

Commit

Permalink
Update check-action-references to skip GitHub workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
giancosta86 committed Sep 3, 2024
1 parent 0fb7cac commit 6be5e9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actions/check-action-references/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ runs:
- name: Fail when finding references to GitHub actions, within the same repository, not on the default branch
shell: ${{ inputs.shell }}
working-directory: ${{ inputs.project-directory }}
run: find -name "*.yml" | xargs egrep -n "uses:\s+${GITHUB_REPOSITORY}.*@" && echo >&2 "There are references to actions, within this repository, not on the default branch" && exit 1
run: find . -path './.github/workflows' -prune -o -name '*.yml' -print | xargs egrep -n "uses:\s+${GITHUB_REPOSITORY}.*@" && echo >&2 "There are references to actions, within this repository, not on the default branch" && exit 1

0 comments on commit 6be5e9a

Please sign in to comment.