-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathcheck_docker_image_versions.yml
More file actions
38 lines (32 loc) · 1.04 KB
/
check_docker_image_versions.yml
File metadata and controls
38 lines (32 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Check Docker Image Versions
on:
pull_request:
types:
# Default values
- opened
- synchronize
- reopened
# Re-run if labels change
- labeled
- unlabeled
jobs:
check-image:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Check for no-image-bump label on PR
id: label-check
env:
GH_TOKEN: ${{ github.token }}
continue-on-error: true
run: |
gh api -H "Accept: application/vnd.github+json" /repos/spack/spack-infrastructure/issues/${{ github.event.pull_request.number }}/labels \
| jq '[.[].name]' \
| jq -e 'any(. == "no-image-bump")'
- name: Fetch the rest of the repo
run: git fetch --no-tags --prune --depth=1 origin main
if: steps.label-check.outcome == 'failure'
- name: Check for modified directories that need an image bump
if: steps.label-check.outcome == 'failure'
run: ./.github/scripts/check_docker_image_versions.sh