⬆️ Update velero/velero-plugin-for-aws Docker tag to v1.11.0 #413
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Verify ARM64 image availability | |
on: | |
pull_request_target: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
permissions: | |
contents: read | |
pull-requests: write | |
issues: write | |
jobs: | |
check-title: | |
runs-on: ubuntu-latest | |
outputs: | |
matched: ${{ steps.check_title.outputs.matched }} | |
steps: | |
- name: Check PR Title for Docker Image Update | |
id: check_title | |
run: | | |
PR_TITLE="${{ github.event.pull_request.title }}" | |
if echo "$PR_TITLE" | grep -E -q 'Update .* Docker (tag|digest)'; then | |
echo "matched=true" >> $GITHUB_OUTPUT | |
else | |
echo "matched=false" >> $GITHUB_OUTPUT | |
fi | |
check-arm64-image: | |
needs: check-title | |
if: needs.check-title.outputs.matched == 'true' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install requests | |
- name: Extract Image, Tag, and Digest from PR Diff | |
id: extract_image_tag_digest | |
env: | |
PR_NUMBER: ${{ github.event.number }} | |
GITHUB_REPOSITORY: ${{ github.repository }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
python .github/scripts/extract_image_info.py | |
- name: Run ARM64 Availability Check | |
id: arm64_check | |
run: | | |
python .github/scripts/check_arm64.py "${{ env.IMAGE }}" "${{ env.TAG }}" "${{ env.DIGEST }}" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
continue-on-error: false | |
- name: Add `donotmerge` Label if Arm64 Not Available | |
if: failure() | |
run: | | |
gh pr edit ${{ github.event.number }} --add-label "donotmerge" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Remove `donotmerge` Label if Arm64 Available | |
if: success() | |
run: | | |
gh pr edit ${{ github.event.number }} --remove-label "donotmerge" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |