Skip to content

Commit 7412701

Browse files
authored
Harden JustRunMyApp redeploy workflow
1 parent 20ce84c commit 7412701

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/jrnm-redeploy.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,28 @@ on:
88
permissions:
99
contents: read
1010

11+
concurrency:
12+
group: jrnm-redeploy-main
13+
cancel-in-progress: false
14+
1115
jobs:
1216
redeploy:
1317
runs-on: ubuntu-latest
18+
timeout-minutes: 5
1419

1520
steps:
1621
- uses: actions/checkout@v4
1722
with:
1823
fetch-depth: 0
1924

25+
- name: Validate JustRunMyApp git URL
26+
run: |
27+
if [ -z "${{ secrets.JRNM_GIT_URL }}" ]; then
28+
echo "JRNM_GIT_URL secret is missing"
29+
exit 1
30+
fi
31+
2032
- name: Push to JustRunMyApp remote
2133
run: |
2234
git remote add jrnm "${{ secrets.JRNM_GIT_URL }}"
23-
git push jrnm HEAD:deploy --force
35+
git push jrnm HEAD:deploy --force

0 commit comments

Comments
 (0)