Skip to content

spack-start.bash: do not set unnecessary variables (#17) #7

spack-start.bash: do not set unnecessary variables (#17)

spack-start.bash: do not set unnecessary variables (#17) #7

name: Update Deployment Repos
on:
push:
branches:
- main
jobs:
update:
name: Update
runs-on: ubuntu-latest
environment: "Gadi"
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