Skip to content

Commit 477249b

Browse files
Merge pull request #1 from GordonBeeming/copilot/fix-d1265103-3cb2-4fbb-9820-e35b760cf5b1
Fix workflow build failure by replacing non-existent GitHub action
2 parents b3b56c5 + 99becf4 commit 477249b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,12 @@ jobs:
4242
# This step only runs on scheduled or manual triggers, not on push events.
4343
- name: Get digest of the remote 'latest' image
4444
if: github.event_name != 'push'
45-
uses: oleg-chudnovskiy/docker-pull-remote-image-digest@v1
4645
id: remote_digest
47-
with:
48-
image: ghcr.io/${{ github.repository }}
49-
tag: latest
46+
run: |
47+
# Try to get the digest of the remote image, handle case when it doesn't exist
48+
DIGEST=$(docker manifest inspect ghcr.io/${{ github.repository }}:latest 2>/dev/null | jq -r '.config.digest' || echo "")
49+
echo "digest=$DIGEST" >> $GITHUB_OUTPUT
50+
echo "Remote digest: $DIGEST"
5051
5152
# Step 5: Build the image and check for changes
5253
# This step builds the image locally and tags it, making it ready for a potential push.

0 commit comments

Comments
 (0)