Skip to content

Commit 0cec254

Browse files
committed
Use --dry-run for non-workflow_dispatch events
1 parent 6a3692d commit 0cec254

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/update-proxy-release.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,17 @@ jobs:
6161
sed -i "s|https://github.com/github/codeql-action/releases/download/codeql-bundle-v[0-9.]\+/|https://github.com/github/codeql-action/releases/download/$RELEASE_TAG/|g" ./src/start-proxy-action.ts
6262
sed -i "s/\"v2.0.[0-9]\+\"/\"v2.0.$NOW\"/g" ./src/start-proxy-action.ts
6363
64+
- name: Compile TypeScript and commit changes
65+
shell: bash
66+
run: |
67+
set -exu
68+
git checkout -b "${{ steps.checks.outputs.target_branch }}"
69+
70+
npm run build
71+
git add ./src/start-proxy-action.ts
72+
git add ./lib
73+
git commit -m "Update release used by \`start-proxy\` action"
74+
6475
- name: Push changes and open PR
6576
shell: bash
6677
env:
@@ -79,17 +90,10 @@ jobs:
7990
EOF
8091
)
8192
82-
git checkout -b "${{ steps.checks.outputs.target_branch }}"
83-
84-
npm run build
85-
git add ./src/start-proxy-action.ts
86-
git add ./lib
87-
git commit -m "$pr_title"
88-
8993
git push origin "${{ steps.checks.outputs.target_branch }}"
9094
gh pr create \
9195
--head "${{ steps.checks.outputs.target_branch }}" \
9296
--base "main" \
9397
--title "${pr_title}" \
9498
--body "${pr_body}" \
95-
--draft
99+
${{ (github.event_name == 'workflow_dispatch' && '--draft') || '--dry-run' }}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy