File tree Expand file tree Collapse file tree 3 files changed +0
-28
lines changed
Expand file tree Collapse file tree 3 files changed +0
-28
lines changed Original file line number Diff line number Diff line change 1010 - main
1111 - develop
1212 merge_group :
13- workflow_call :
1413
1514concurrency :
1615 group : (${{ github.workflow }}-${{ github.event.inputs.branch || github.event.pull_request.head.ref }})
Original file line number Diff line number Diff line change 1010jobs :
1111 auto-update :
1212 runs-on : ubuntu-latest
13- outputs :
14- diff : ${{ steps.check-diff.outputs.diff }}
1513 steps :
1614 - uses : actions/checkout@v4
1715 - uses : actions/setup-python@v5
1816 - uses : browniebroke/pre-commit-autoupdate-action@main
1917 - uses : peter-evans/create-pull-request@v6
20- id : pr-create
2118 with :
2219 token : ${{ secrets.GITHUB_TOKEN }}
2320 branch : update/pre-commit-hooks
2421 title : Update pre-commit hooks
2522 commit-message : " chore: update pre-commit hooks"
2623 body : Update versions of pre-commit hooks to latest version.
27- - name : Set outputs
28- id : check-diff
29- if : |
30- (steps.pr-create.outputs.pull-request-operation == 'created' ||
31- steps.pr-create.outputs.pull-request-operation == 'updated') &&
32- steps.pr-create.outputs.pull-request-number
33- run : |
34- echo "diff=true" >> "$GITHUB_OUTPUT"
35- echo "PR status: ${{ steps.pr-create.outputs.pull-request-operation }}"
36- echo "PR number: ${{ steps.pr-create.outputs.pull-request-number }}"
37- echo "Running workflows for ${{ steps.pr-create.outputs.pull-request-url }}"
38-
39- lint-workflow :
40- name : Run lint
41- needs : auto-update
42- if : ${{ needs.auto-update.outputs.diff }}
43- uses : ./.github/workflows/lint.yml
44-
45- test-workflow :
46- name : run tests on diff
47- needs : auto-update
48- if : ${{ needs.auto-update.outputs.diff }}
49- uses : ./.github/workflows/test.yml
Original file line number Diff line number Diff line change 1414 - develop
1515 - " [0-9]+.[0-9]+.x"
1616 merge_group :
17- workflow_call :
1817
1918concurrency :
2019 group : ${{ github.workflow }}-${{ github.ref }}
You can’t perform that action at this time.
0 commit comments