Skip to content

Commit

Permalink
change conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
momentmaker committed Aug 8, 2024
1 parent 4aca4de commit cc65cf1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-publish-develop-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ jobs:
id: get-image-tag
run: |
short_sha=$(git rev-parse --short HEAD)
if [[ ${{ github.event }} == 'pull_request' ]]; then
if [[ ${{ github.event_name }} == 'push' ]]; then
echo "image-tag=develop-${short_sha}" >> $GITHUB_OUTPUT
else
if [[ ${{ github.head_ref }} == 'release/'* ]]; then
echo "image-tag=release-${short_sha}" >> $GITHUB_OUTPUT
else
echo "image-tag=pr-${{ github.event.number }}-${short_sha}" >> $GITHUB_OUTPUT
fi
else
echo "image-tag=develop-${short_sha}" >> $GITHUB_OUTPUT
fi
- name: Configure aws credentials
Expand Down

0 comments on commit cc65cf1

Please sign in to comment.