Skip to content

Commit

Permalink
run tag
Browse files Browse the repository at this point in the history
  • Loading branch information
jdettmannnava committed Dec 17, 2024
1 parent 1391277 commit b71fb38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ on:
- .github/workflows/release.yml

jobs:
tag_site:
name: Tag Site
tag_repo:
name: Tag Repo
uses: ./.github/workflows/tag_release.yml
with:
repo_ref: main
secrets: inherit
deploy:
name: Deploy to Staging
needs: tag_site
needs: tag_repo
uses: ./.github/workflows/deploy.yml
with:
target_environment: staging
static_repo_ref: ${{ needs.tag_site.outputs.tag }}
static_repo_ref: ${{ needs.tag_repo.outputs.tag }}
secrets: inherit
5 changes: 2 additions & 3 deletions .github/workflows/tag_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ jobs:
echo "prev_rev=$prev_rev" >> "$GITHUB_OUTPUT"
prev_rev_num=${prev_rev/r}
next_rev_num=$((prev_rev_num + 1))
next_rev=r$next_rev_num
echo "next_rev=$prev_rev" >> "$GITHUB_OUTPUT"
next_rev=t$next_rev_num
echo "next_rev=$next_rev" >> "$GITHUB_OUTPUT"
- name: "Set Body"
id: set_body
env:
Expand All @@ -43,7 +43,6 @@ jobs:
BODY=`git log --pretty=format:"- %s" $PREV_REV..HEAD`
echo "body=$BODY" >> "$GITHUB_OUTPUT"
- name: Release
if: ${{ env.NEXT_REV == 'dont run' }}
uses: softprops/action-gh-release@v2
with:
body: ${{ steps.set_body.outputs.body }}
Expand Down

0 comments on commit b71fb38

Please sign in to comment.