Skip to content

Commit

Permalink
Updating Login action. (#43)
Browse files Browse the repository at this point in the history
Also fixing dry runs by skipping login for pull requests.
  • Loading branch information
thirtytwobits authored Apr 4, 2024
1 parent 10b4d63 commit df0ab3b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/toolshed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Login to GHCR
uses: docker/login-action@v2
if: ${{ github.event_name != 'pull_request' && !github.event.release.prerelease}}
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand Down Expand Up @@ -99,7 +100,7 @@ jobs:
images: ${{ env.REGISTRY_IMAGE }}

- name: Login to GHCR
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/toxic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Login to GHCR
uses: docker/login-action@v2
if: ${{ github.event_name != 'pull_request' && !github.event.release.prerelease}}
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand Down Expand Up @@ -99,7 +100,7 @@ jobs:
images: ${{ env.REGISTRY_IMAGE }}

- name: Login to GHCR
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand Down

0 comments on commit df0ab3b

Please sign in to comment.