File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4444 set_version : ${{ github.event.inputs.set_version }}
4545 speakeasy_version : ${{ needs.resolve-speakeasy-version.outputs.version }}
4646 target : mistralai-azure-sdk
47+ feature_branch : speakeasy-sdk-regen-${{ github.run_id }}
4748 secrets :
4849 github_access_token : ${{ secrets.CLIENT_PIPELINE }}
4950 pypi_token : ${{ secrets.PYPI_TOKEN }}
@@ -57,10 +58,12 @@ jobs:
5758 id : find-pr
5859 env :
5960 GH_TOKEN : ${{ secrets.CLIENT_PIPELINE }}
61+ SPEAKEASY_BRANCH : speakeasy-sdk-regen-${{ github.run_id }}
6062 run : |
61- PR_BRANCH=$(gh pr list --repo ${{ github.repository }} --author "app/github-actions" \
62- --json headRefName,updatedAt --jq 'sort_by(.updatedAt) | reverse | .[0].headRefName // empty')
63- echo "branch=$PR_BRANCH" >> $GITHUB_OUTPUT
63+ set -euo pipefail
64+ PR_BRANCH="$SPEAKEASY_BRANCH"
65+ echo "Using Speakeasy generated branch: $PR_BRANCH"
66+ echo "branch=$PR_BRANCH" >> "$GITHUB_OUTPUT"
6467
6568 - name : Checkout PR branch
6669 if : steps.find-pr.outputs.branch != ''
Original file line number Diff line number Diff line change 4444 set_version : ${{ github.event.inputs.set_version }}
4545 speakeasy_version : ${{ needs.resolve-speakeasy-version.outputs.version }}
4646 target : mistralai-gcp-sdk
47+ feature_branch : speakeasy-sdk-regen-${{ github.run_id }}
4748 secrets :
4849 github_access_token : ${{ secrets.CLIENT_PIPELINE }}
4950 pypi_token : ${{ secrets.PYPI_TOKEN }}
@@ -57,10 +58,12 @@ jobs:
5758 id : find-pr
5859 env :
5960 GH_TOKEN : ${{ secrets.CLIENT_PIPELINE }}
61+ SPEAKEASY_BRANCH : speakeasy-sdk-regen-${{ github.run_id }}
6062 run : |
61- PR_BRANCH=$(gh pr list --repo ${{ github.repository }} --author "app/github-actions" \
62- --json headRefName,updatedAt --jq 'sort_by(.updatedAt) | reverse | .[0].headRefName // empty')
63- echo "branch=$PR_BRANCH" >> $GITHUB_OUTPUT
63+ set -euo pipefail
64+ PR_BRANCH="$SPEAKEASY_BRANCH"
65+ echo "Using Speakeasy generated branch: $PR_BRANCH"
66+ echo "branch=$PR_BRANCH" >> "$GITHUB_OUTPUT"
6467
6568 - name : Checkout PR branch
6669 if : steps.find-pr.outputs.branch != ''
Original file line number Diff line number Diff line change 4444 set_version : ${{ github.event.inputs.set_version }}
4545 speakeasy_version : ${{ needs.resolve-speakeasy-version.outputs.version }}
4646 target : mistralai-sdk
47+ feature_branch : speakeasy-sdk-regen-${{ github.run_id }}
4748 secrets :
4849 github_access_token : ${{ secrets.CLIENT_PIPELINE }}
4950 pypi_token : ${{ secrets.PYPI_TOKEN }}
@@ -57,10 +58,12 @@ jobs:
5758 id : find-pr
5859 env :
5960 GH_TOKEN : ${{ secrets.CLIENT_PIPELINE }}
61+ SPEAKEASY_BRANCH : speakeasy-sdk-regen-${{ github.run_id }}
6062 run : |
61- PR_BRANCH=$(gh pr list --repo ${{ github.repository }} --author "app/github-actions" \
62- --json headRefName,updatedAt --jq 'sort_by(.updatedAt) | reverse | .[0].headRefName // empty')
63- echo "branch=$PR_BRANCH" >> $GITHUB_OUTPUT
63+ set -euo pipefail
64+ PR_BRANCH="$SPEAKEASY_BRANCH"
65+ echo "Using Speakeasy generated branch: $PR_BRANCH"
66+ echo "branch=$PR_BRANCH" >> "$GITHUB_OUTPUT"
6467
6568 - name : Checkout PR branch
6669 if : steps.find-pr.outputs.branch != ''
You can’t perform that action at this time.
0 commit comments