@@ -45,12 +45,12 @@ jobs:
4545 echo "Branch $BRANCH does not exist - creating it now"
4646 fi
4747
48- - name : Create and push branch
49- if : steps.check-branch.outputs.creating_new_branch == 'true'
50- id : create-branch
51- run : |
52- git checkout -b "${{ steps.define-branch.outputs.branch }}"
53- git push -u origin "${{ steps.define-branch.outputs.branch }}"
48+ # - name: Create and push branch
49+ # if: steps.check-branch.outputs.creating_new_branch == 'true'
50+ # id: create-branch
51+ # run: |
52+ # git checkout -b "${{ steps.define-branch.outputs.branch }}"
53+ # git push -u origin "${{ steps.define-branch.outputs.branch }}"
5454
5555 - name : Update system-tests references to latest commit SHA on main
5656 run : ./tooling/update_system_test_reference.sh
@@ -68,33 +68,44 @@ jobs:
6868 git status -s
6969 fi
7070
71- - name : Commit changes
72- if : steps.check-changes.outputs.commit_changes == 'true'
73- id : create-commit
74- run : |
75- git config user.name "github-actions[bot]"
76- git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
77- git commit -m "chore: Pin system-tests for release branch" .github/workflows/run-system-tests.yaml
78- echo "commit=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
79-
80- - name : Push changes
81- uses : DataDog/commit-headless@5a0f3876e0fbdd3a86b3e008acf4ec562db59eee # action/v2.0.1
71+ - name : Create pull request
8272 if : steps.check-changes.outputs.commit_changes == 'true'
73+ uses : peter-evans/create-pull-request@v8
8374 with :
84- token : " ${{ steps.octo-sts.outputs.token }}"
85- branch : " ${{ steps.define-branch.outputs.branch }}"
86- command : push
87- commits : " ${{ steps.create-commit.outputs.commit }}"
75+ token : ${{ steps.octo-sts.outputs.token }}
76+ commit-message : " chore: Pin system-tests for release branch"
77+ title : " Pin system-tests for release branch"
78+ branch : ${{ steps.define-branch.outputs.branch }}
79+ base : " master"
80+ body : " This PR pins the system-tests reference for the release branch."
81+
82+ # - name: Commit changes
83+ # if: steps.check-changes.outputs.commit_changes == 'true'
84+ # id: create-commit
85+ # run: |
86+ # git config user.name "github-actions[bot]"
87+ # git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
88+ # git commit -m "chore: Pin system-tests for release branch" .github/workflows/run-system-tests.yaml
89+ # echo "commit=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
90+
91+ # - name: Push changes
92+ # uses: DataDog/commit-headless@5a0f3876e0fbdd3a86b3e008acf4ec562db59eee # action/v2.0.1
93+ # if: steps.check-changes.outputs.commit_changes == 'true'
94+ # with:
95+ # token: "${{ steps.octo-sts.outputs.token }}"
96+ # branch: "${{ steps.define-branch.outputs.branch }}"
97+ # command: push
98+ # commits: "${{ steps.create-commit.outputs.commit }}"
8899
89- - name : Create pull request
90- if : steps.check-changes.outputs.commit_changes == 'true'
91- env :
92- GH_TOKEN : ${{ steps.octo-sts.outputs.token }}
93- # base may need to be `release/v*`
94- run : |
95- gh pr create --title "Pin system tests for release branch" \
96- --base master \
97- --head ${{ steps.define-branch.outputs.branch }} \
98- --label "tag: dependencies" \
99- --label "tag: no release notes" \
100- --body "This PR pins the system-tests reference for the release branch."
100+ # - name: Create pull request
101+ # if: steps.check-changes.outputs.commit_changes == 'true'
102+ # env:
103+ # GH_TOKEN: ${{ steps.octo-sts.outputs.token }}
104+ # # base may need to be `release/v*`
105+ # run: |
106+ # gh pr create --title "Pin system tests for release branch" \
107+ # --base master \
108+ # --head ${{ steps.define-branch.outputs.branch }} \
109+ # --label "tag: dependencies" \
110+ # --label "tag: no release notes" \
111+ # --body "This PR pins the system-tests reference for the release branch."
0 commit comments