File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 3737 env :
3838 GITHUB_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
3939 run : |
40- (gh release view --repo ${{ github.event.repository.full_name }} --json "assets" "$RELEASE_TAG" && echo "Release found.") || exit 1
40+ (gh release view --repo "$GITHUB_REPOSITORY" --json "assets" "$RELEASE_TAG" && echo "Release found.") || exit 1
4141
4242 - name : Install Node
4343 uses : actions/setup-node@v4
6363
6464 - name : Compile TypeScript and commit changes
6565 shell : bash
66+ env :
67+ TARGET_BRANCH : ${{ steps.checks.outputs.target_branch }}
6668 run : |
6769 set -exu
68- git checkout -b "${{ steps.checks.outputs.target_branch }} "
70+ git checkout -b "$TARGET_BRANCH "
6971
7072 npm run build
7173 git add ./src/start-proxy-action.ts
7678 shell : bash
7779 env :
7880 GITHUB_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
81+ TARGET_BRANCH : ${{ steps.checks.outputs.target_branch }}
82+ PR_FLAG : ${{ (github.event_name == 'workflow_dispatch' && '--draft') || '--dry-run' }}
7983 run : |
8084 set -exu
8185 pr_title="Update release used by \`start-proxy\` to \`$RELEASE_TAG\`"
@@ -91,10 +95,10 @@ jobs:
9195 EOF
9296 )
9397
94- git push origin "${{ steps.checks.outputs.target_branch }} "
98+ git push origin "$TARGET_BRANCH "
9599 gh pr create \
96- --head "${{ steps.checks.outputs.target_branch }} " \
100+ --head "$TARGET_BRANCH " \
97101 --base "main" \
98102 --title "${pr_title}" \
99103 --body "${pr_body}" \
100- ${{ (github.event_name == 'workflow_dispatch' && '--draft') || '--dry-run' }}
104+ $PR_FLAG
You can’t perform that action at this time.
0 commit comments