Replaced all 'spack_config' with spack-config (#12) #5
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 Deployment Repos | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
update: | |
name: Update | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup SSH | |
id: ssh | |
uses: access-nri/actions/.github/actions/setup-ssh@main | |
with: | |
hosts: ${{ secrets.HOST }} | |
private-key: ${{ secrets.SSH_KEY }} | |
- name: Pull Deployment spack-config | |
# This command sshs into the given host, and finds all the version directories that spack-config | |
# is installed in, then updates them | |
run: | | |
ssh ${{ secrets.USER }}@${{ secrets.HOST }} -i ${{ steps.ssh.outputs.private-key-path }} /bin/bash <<'EOT' | |
cd ${{ vars.ROOT_SPACK_LOCATION }} | |
find . -maxdepth 1 -mindepth 1 -type d -exec git -C '{}/spack-config' pull \; | |
EOT |