try with schedule
This commit is contained in:
parent
17d6733c21
commit
d3f064cc3b
1 changed files with 18 additions and 0 deletions
|
@ -13,6 +13,24 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: update nix flakes
|
||||
if: ${{ github.event_name == 'schedule' }}
|
||||
run: |
|
||||
cat <<EOF > .ssh_key
|
||||
${{ secrets.SSH_KEY }}
|
||||
EOF
|
||||
chmod 600 .ssh_key
|
||||
|
||||
eval $(ssh-agent)
|
||||
ssh-add .ssh_key
|
||||
|
||||
nix flake update
|
||||
|
||||
echo $SSH_AGENT_PID
|
||||
kill $SSH_AGENT_PID
|
||||
rm .ssh_key
|
||||
|
||||
|
||||
- name: nix flake archive
|
||||
run: |
|
||||
cat <<EOF > .id_rsa
|
||||
|
|
Loading…
Reference in a new issue