Skip to content

Commit

Permalink
Add sample-matrix
Browse files Browse the repository at this point in the history
Signed-off-by: Enrique Belarte Luque <[email protected]>
  • Loading branch information
enriquebelarte committed Jan 23, 2025
1 parent c3ac3dc commit 0187b40
Show file tree
Hide file tree
Showing 3 changed files with 1,842 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/check-kernel-releases.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Check remote DTK tags

on:
schedule:
- cron: '*/5 * * * *'

jobs:
check_tags:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Get remote DTK tags
id: get_tags
run: |
set -e
REGISTRY="quay.io/build-and-sign"
REPOSITORY="pa-driver-toolkit"
TAGS=$(docker image inspect --type=registry ${REGISTRY}/${REPOSITORY} | jq -r '.[0].RepoTags[]')
echo "::set-output name=tags::${TAGS}"
- name: Read previous tags
id: read_previous_tags
run: |
if [ -f kernel-versions.txt ]; then
echo "::set-output name=previous_tags::$(cat kernel-versions.txt)"
fi
- name: Compare tags
run: |
if [ -z "${{ steps.get_tags.outputs.tags }}" ]; then
echo "No tags found."
elif [ "${{ steps.get_tags.outputs.tags }}" != "${{ steps.read_previous_tags.outputs.previous_tags }}" ]; then
echo "Tags have changed."
echo "${{ steps.get_tags.outputs.tags }}" > tags.txt
else
echo "Tags are unchanged."
fi
- name: Commit and push changes
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "GitHub Actions"
if [ -f kernel-versions.txt ]; then
git add kernel-versions.txt
if [[ $(git status --porcelain) ]]; then
git commit -m "Update DTK available kernel versions"
git push
fi
fi
Loading

0 comments on commit 0187b40

Please sign in to comment.