diff --git a/.github/workflows/toolshed.yml b/.github/workflows/toolshed.yml index 09c540c..efc432b 100644 --- a/.github/workflows/toolshed.yml +++ b/.github/workflows/toolshed.yml @@ -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 }} @@ -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 }} diff --git a/.github/workflows/toxic.yml b/.github/workflows/toxic.yml index 34cbc3a..8d25d26 100644 --- a/.github/workflows/toxic.yml +++ b/.github/workflows/toxic.yml @@ -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 }} @@ -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 }}