Check for new versions #285
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: Check for new versions | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 13 * * 1" # Every Monday at 1PM UTC (9AM EST) | |
jobs: | |
check-new-versions: | |
runs-on: ubuntu-latest | |
container: ghcr.io/spack/ubuntu-jammy:latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
path: key4hep-spack | |
repository: key4hep/key4hep-spack | |
- uses: actions/checkout@v3 | |
with: | |
path: eic-spack | |
- name: Check for new versions and create issue | |
env: | |
COMMENT_BOT_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
shell: bash | |
run: | | |
source /opt/spack/share/spack/setup-env.sh | |
spack repo add --scope site ${GITHUB_WORKSPACE}/key4hep-spack | |
spack repo add --scope site ${GITHUB_WORKSPACE}/eic-spack | |
bash eic-spack/.github/scripts/checksum_new_versions.sh | |
- name: Create pull request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
path: eic-spack | |
branch-suffix: short-commit-hash | |
title: New package versions found | |
body: | | |
New package versions found | |
assignees: wdconinc |