Update sync-image.yml
This commit is contained in:
parent
60ab132890
commit
ebae3dedfc
|
@ -45,10 +45,11 @@ jobs:
|
||||||
gh issue close ${{ github.event.issue.number }} --reason "not planned"
|
gh issue close ${{ github.event.issue.number }} --reason "not planned"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
echo "image=${ORIGIN_IMAGE}" >> $GITHUB_OUTPUT
|
||||||
if [[ "${ORIGIN_IMAGE}" =~ ^docker.io/ ]]; then
|
if [[ "${ORIGIN_IMAGE}" =~ ^docker.io/ ]]; then
|
||||||
ORIGIN_IMAGE="registry-1.${ORIGIN_IMAGE}"
|
ORIGIN_IMAGE="registry-1.${ORIGIN_IMAGE}"
|
||||||
fi
|
fi
|
||||||
echo "image=${ORIGIN_IMAGE}" >> $GITHUB_OUTPUT
|
echo "sync_image=${ORIGIN_IMAGE}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Set up crproxy
|
- name: Set up crproxy
|
||||||
run: |
|
run: |
|
||||||
|
@ -62,7 +63,7 @@ jobs:
|
||||||
-H 'Authorization: Bearer ${{ secrets.QUEUE_TOKEN }}' \
|
-H 'Authorization: Bearer ${{ secrets.QUEUE_TOKEN }}' \
|
||||||
-H 'Content-Type: application/json' \
|
-H 'Content-Type: application/json' \
|
||||||
-d '{
|
-d '{
|
||||||
"content": "${{ steps.get-image.outputs.image }}",
|
"content": "${{ steps.get-image.outputs.sync_image }}",
|
||||||
"priority": 10
|
"priority": 10
|
||||||
}' | jq -r .id)
|
}' | jq -r .id)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue