1515 create-release-branch :
1616 runs-on : ubuntu-latest
1717 permissions :
18- contents : write # Allow pushing the empty release branch
18+ # contents: write # Allow pushing the empty release branch
19+ contents : read
1920 id-token : write # Required for OIDC token federation
2021 steps :
2122 - uses : DataDog/dd-octo-sts-action@acaa02eee7e3bb0839e4272dacb37b8f3b58ba80 # v1.0.3
@@ -42,42 +43,43 @@ jobs:
4243 id : define-branch
4344 run : |
4445 TAG=${{ steps.determine-tag.outputs.tag }}
45- echo "branch=release/${TAG%.0}.x" >> "$GITHUB_OUTPUT"
46+ # echo "branch=release/${TAG%.0}.x" >> "$GITHUB_OUTPUT"
47+ echo "branch=release/v0.0.x" >> "$GITHUB_OUTPUT"
4648
4749 - name : Checkout dd-trace-java at tag
4850 uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # 5.0.0
4951 with :
5052 ref : ${{ github.sha }}
5153
52- - name : Check if branch already exists
53- id : check-branch
54- run : |
55- BRANCH=${{ steps.define-branch.outputs.branch }}
56- if git ls-remote --heads origin "$BRANCH" | grep -q "$BRANCH"; then
57- echo "creating_new_branch=false" >> "$GITHUB_OUTPUT"
58- echo "Branch $BRANCH already exists - skipping following steps"
59- else
60- echo "creating_new_branch=true" >> "$GITHUB_OUTPUT"
61- echo "Branch $BRANCH does not exist - proceeding with following steps"
62- fi
54+ # - name: Check if branch already exists
55+ # id: check-branch
56+ # run: |
57+ # BRANCH=${{ steps.define-branch.outputs.branch }}
58+ # if git ls-remote --heads origin "$BRANCH" | grep -q "$BRANCH"; then
59+ # echo "creating_new_branch=false" >> "$GITHUB_OUTPUT"
60+ # echo "Branch $BRANCH already exists - skipping following steps"
61+ # else
62+ # echo "creating_new_branch=true" >> "$GITHUB_OUTPUT"
63+ # echo "Branch $BRANCH does not exist - proceeding with following steps"
64+ # fi
6365
64- - name : Create and push empty release branch
65- if : steps.check-branch.outputs.creating_new_branch == 'true'
66- run : |
67- git checkout -b "${{ steps.define-branch.outputs.branch }}"
68- git push -u origin "${{ steps.define-branch.outputs.branch }}"
66+ # - name: Create and push empty release branch
67+ # if: steps.check-branch.outputs.creating_new_branch == 'true'
68+ # run: |
69+ # git checkout -b "${{ steps.define-branch.outputs.branch }}"
70+ # git push -u origin "${{ steps.define-branch.outputs.branch }}"
6971
7072 - name : Define temp branch name
71- if : steps.check-branch.outputs.creating_new_branch == 'true'
73+ # if: steps.check-branch.outputs.creating_new_branch == 'true'
7274 id : define-temp-branch
7375 run : echo "branch=ci/pin-system-tests-$(date +'%Y%m%d')" >> $GITHUB_OUTPUT
7476
7577 - name : Update system-tests references to latest commit SHA on main
76- if : steps.check-branch.outputs.creating_new_branch == 'true'
78+ # if: steps.check-branch.outputs.creating_new_branch == 'true'
7779 run : BRANCH=main ./tooling/update_system_test_reference.sh
7880
7981 - name : Commit changes
80- if : steps.check-branch.outputs.creating_new_branch == 'true'
82+ # if: steps.check-branch.outputs.creating_new_branch == 'true'
8183 id : create-commit
8284 run : |
8385 git config user.name "github-actions[bot]"
8688 echo "commit=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
8789
8890 - name : Push changes to temp branch
89- if : steps.check-branch.outputs.creating_new_branch == 'true'
91+ # if: steps.check-branch.outputs.creating_new_branch == 'true'
9092 uses : DataDog/commit-headless@5a0f3876e0fbdd3a86b3e008acf4ec562db59eee # action/v2.0.1
9193 with :
9294 token : " ${{ steps.octo-sts.outputs.token }}"
9799 commits : " ${{ steps.create-commit.outputs.commit }}"
98100
99101 - name : Create pull request from temp branch to release branch
100- if : steps.check-branch.outputs.creating_new_branch == 'true'
102+ # if: steps.check-branch.outputs.creating_new_branch == 'true'
101103 env :
102104 GH_TOKEN : ${{ steps.octo-sts.outputs.token }}
103105 run : |
0 commit comments