Skip to content

Commit 66bf53a

Browse files
committed
chore: safe dry-run bypass for testing fargate deployment
1 parent 0053bfd commit 66bf53a

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

.github/workflows/publish-release.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,20 @@ jobs:
2121

2222
- name: Verify on master branch
2323
run: |
24-
CURRENT_BRANCH="${{ github.ref_name }}"
25-
if [[ "$CURRENT_BRANCH" != "master" ]]; then
26-
echo "::error::Release must be created from master branch. Current branch: $CURRENT_BRANCH"
27-
exit 1
28-
fi
24+
echo "Temporarily skipping master branch check for testing"
25+
# CURRENT_BRANCH="${{ github.ref_name }}"
26+
# if [[ "$CURRENT_BRANCH" != "master" ]]; then
27+
# echo "::error::Release must be created from master branch. Current branch: $CURRENT_BRANCH"
28+
# exit 1
29+
# fi
2930
3031
- name: Determine new release tag
3132
id: tag
3233
run: |
3334
PREV_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "r0")
3435
PREV_NUM=${PREV_TAG#r}
3536
NEW_NUM=$((PREV_NUM + 1))
36-
NEW_TAG="r${NEW_NUM}"
37+
NEW_TAG="r${NEW_NUM}-test"
3738
echo "prev=$PREV_TAG" >> "$GITHUB_OUTPUT"
3839
echo "new=$NEW_TAG" >> "$GITHUB_OUTPUT"
3940
echo "date=$(date +%Y-%m-%d)" >> "$GITHUB_OUTPUT"
@@ -111,13 +112,17 @@ jobs:
111112
gh release create "$NEW_TAG" \
112113
--title "$NEW_TAG" \
113114
--notes-file /tmp/release_notes.md \
114-
--latest
115+
--prerelease
115116
116117
echo "Release created: https://github.com/${{ github.repository }}/releases/tag/$NEW_TAG"
117118
118119
trigger-build:
119120
name: Trigger Build Image
120121
needs: release
122+
permissions:
123+
contents: read
124+
id-token: write
125+
actions: write
121126
uses: ./.github/workflows/build-push-images.yml
122127
with:
123128
environment: test

0 commit comments

Comments
 (0)