Skip to content

Commit

Permalink
add run_attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgramComputer committed Jan 9, 2024
1 parent 08104a3 commit 8619b6f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/docker-to-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Add Docker images to release
on:
release:
types: [ published ]
push:
tags:
# Release attempt
- '*.*.*'

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -56,7 +60,9 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
outputs: type=oci,dest=/tmp/image.tar
if: ${{ github.event_name == 'release' || fromJSON(github.run_attempt) == 1 }}
- name: Upload binaries to release
if: ${{ github.event_name == 'release' || fromJSON(github.run_attempt) == 1}}
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 8619b6f

Please sign in to comment.