Skip to content

Commit df0ab3b

Browse files
Updating Login action. (#43)
Also fixing dry runs by skipping login for pull requests.
1 parent 10b4d63 commit df0ab3b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/toolshed.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ jobs:
4444
uses: docker/setup-buildx-action@v3
4545

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

101102
- name: Login to GHCR
102-
uses: docker/login-action@v2
103+
uses: docker/login-action@v3
103104
with:
104105
registry: ghcr.io
105106
username: ${{ github.repository_owner }}

.github/workflows/toxic.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ jobs:
4444
uses: docker/setup-buildx-action@v3
4545

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

101102
- name: Login to GHCR
102-
uses: docker/login-action@v2
103+
uses: docker/login-action@v3
103104
with:
104105
registry: ghcr.io
105106
username: ${{ github.repository_owner }}

0 commit comments

Comments
 (0)