Update Spack Package Interface #1214
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: Update Spack Package Interface | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 5 * * *' | |
jobs: | |
extraction: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Clone development branch of spack | |
run: git clone https://github.com/spack/spack /opt/spack | |
- name: Run update script | |
run: | | |
export PATH=/opt/spack/bin:$PATH | |
spack python generate_packages.py | |
- name: Push Results | |
run: | | |
git config --global user.name "github-actions" | |
git config --global user.email "github-actions@users.noreply.github.com" | |
git add data/* | |
git commit -m "Automated push with new spackages $(date '+%Y-%m-%d')" || exit 0 | |
git push origin main |