Skip to content

Commit

Permalink
Update image-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
georgepstaylor committed Sep 20, 2024
1 parent b39dddb commit 06b45b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/image-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
- name: Create safe tag for image
id: safe_tag
run: |
if ${{ github.event_name }} == 'pull_request'; then
echo "SAFE_TAG=$(echo ${{ github.ref_name }} | sed 's/[^a-zA-Z0-9.]/-/g')-${{ github.run_id }}-${{ github.run_number }}" >> $GITHUB_OUTPUT
if "${{ github.event_name }}" == "pull_request"; then
echo "SAFE_TAG=$(echo ${{ github.event.pull_request.head.ref }} | sed 's/[^a-zA-Z0-9.]/-/g')-${{ github.run_id }}-${{ github.run_number }}" >> $GITHUB_OUTPUT
else
echo "SAFE_TAG=$(echo ${{ github.ref_name }} | sed 's/[^a-zA-Z0-9.]/-/g')" >> $GITHUB_OUTPUT
fis
Expand Down

0 comments on commit 06b45b8

Please sign in to comment.