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 37
37
env :
38
38
GITHUB_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
39
39
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
41
41
42
42
- name : Install Node
43
43
uses : actions/setup-node@v4
63
63
64
64
- name : Compile TypeScript and commit changes
65
65
shell : bash
66
+ env :
67
+ TARGET_BRANCH : ${{ steps.checks.outputs.target_branch }}
66
68
run : |
67
69
set -exu
68
- git checkout -b "${{ steps.checks.outputs.target_branch }} "
70
+ git checkout -b "$TARGET_BRANCH "
69
71
70
72
npm run build
71
73
git add ./src/start-proxy-action.ts
76
78
shell : bash
77
79
env :
78
80
GITHUB_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
81
+ TARGET_BRANCH : ${{ steps.checks.outputs.target_branch }}
82
+ PR_FLAG : ${{ (github.event_name == 'workflow_dispatch' && '--draft') || '--dry-run' }}
79
83
run : |
80
84
set -exu
81
85
pr_title="Update release used by \`start-proxy\` to \`$RELEASE_TAG\`"
@@ -91,10 +95,10 @@ jobs:
91
95
EOF
92
96
)
93
97
94
- git push origin "${{ steps.checks.outputs.target_branch }} "
98
+ git push origin "$TARGET_BRANCH "
95
99
gh pr create \
96
- --head "${{ steps.checks.outputs.target_branch }} " \
100
+ --head "$TARGET_BRANCH " \
97
101
--base "main" \
98
102
--title "${pr_title}" \
99
103
--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