File tree Expand file tree Collapse file tree 1 file changed +4
-24
lines changed
Expand file tree Collapse file tree 1 file changed +4
-24
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,6 @@ concurrency:
99 group : ' ${{ github.workflow }}-${{ github.head_ref || github.ref }}'
1010 cancel-in-progress : true
1111
12- env :
13- PR_BRANCH : ' actions/gcloud-versions'
14-
1512jobs :
1613 compile-versions :
1714 runs-on : ' ubuntu-latest'
@@ -33,29 +30,12 @@ jobs:
3330 echo "Computed versions:"
3431 cat ./data/versions.json
3532
36- - id : ' updates'
37- name : ' Update versions list'
38- run : |-
39- if git diff --exit-code ./data/versions.json; then
40- echo "No changes"
41- echo "had_changes=false" >> ${GITHUB_OUTPUT}
42- exit 0
43- fi
44-
45- echo "had_changes=true" >> ${GITHUB_OUTPUT}
46-
47- # Create a pull request with updated files
4833 - name : ' Create/Update Pull Request'
49- # Skip if there a no changes
50- if : ' ${{ fromJSON(steps.updates.outputs.had_changes) }}'
51- uses : ' abcxyz/pkg/.github/actions/create-pull-request@2fb8f8c90a04f2ec263305efdef8a1a4e2c54a55' # ratchet:abcxyz/pkg/.github/actions/create-pull-request@main
34+ uses : ' abcxyz/pkg/.github/actions/create-pull-request@main' # ratchet:exclude
5235 with :
5336 token : ' ${{ secrets.ACTIONS_BOT_TOKEN }}'
54- base_branch : ' ${{ github.event.repository.default_branch }}'
55- head_branch : ' ${{ env.PR_BRANCH }}'
37+ base_branch : ' ${{ github.ref_name }}'
38+ head_branch : ' actions/compile-versions- ${{ github.ref_name }}'
5639 title : ' Update gcloud versions'
5740 body : ' Update latest gcloud versions'
58- changed_paths : |-
59- [
60- "data/versions.json"
61- ]
41+ compute_paths : true
You can’t perform that action at this time.
0 commit comments