Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,16 @@ runs:
# `pull-requests: write`, in which case the report stays in the summary.
GITHUB_TOKEN: ${{ inputs.registry-token || github.token }}
run: |
# Self-hosted runners keep a persistent Docker cache — plain `docker
# run image:latest` reuses whatever :latest already sits on disk and
# never checks the registry, so a release here can silently never
# reach them. --pull always forces the freshness check every run.
dns_args=""
if [ -n "${{ inputs.dns }}" ]; then
IFS=',' read -ra servers <<< "${{ inputs.dns }}"
for s in "${servers[@]}"; do dns_args="$dns_args --dns $(echo "$s" | tr -d ' ')"; done
fi
docker run --rm $dns_args \
docker run --rm --pull always $dns_args \
-v "${{ github.workspace }}:/src" \
-v "${GITHUB_STEP_SUMMARY}:/tmp/summary.md" \
-w "/src/${{ inputs.path }}" \
Expand Down
Loading