-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add test echo statements * be more explicit in push run scenarios to avoid running on pushes to PR branches
- Loading branch information
1 parent
beb1579
commit ba30e9c
Showing
3 changed files
with
22 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
name: Pull Request or Push | ||
|
||
# on: [push, pull_request] | ||
on: | ||
workflow_call: | ||
inputs: | ||
changed-files: | ||
required: true | ||
type: string | ||
description: JSON string containing information about changed files | ||
push: | ||
branches: | ||
- 'main' # Run on pushes to main even though we shouldn't do this | ||
tags-ignore: | ||
- '*' # Ignore pushes to tags | ||
pull_request: | ||
|
||
jobs: | ||
ci: | ||
name: CI | ||
uses: salt-extensions/central-artifacts/.github/workflows/ci.yml@main | ||
permissions: | ||
contents: write | ||
pull-requests: read | ||
call-get-changed-files: | ||
uses: salt-extensions/central-artifacts/.github/workflows/get-changed-files.yml@main | ||
|
||
call-pre-commit-action: | ||
uses: salt-extensions/central-artifacts/.github/workflows/pre-commit-action.yml@main | ||
needs: | ||
- call-get-changed-files | ||
with: | ||
changed-files: ${{ needs.call-get-changed-files.outputs.changed-files }} |