name: Update Images on: workflow_dispatch: schedule: - cron: 0 0 * * * jobs: run-update: name: Run update script runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v4 - name: Configure credentials run: | mkdir -p ~/.ssh echo "${{ secrets.SSH_KNOWN_HOSTS }}" >> ~/.ssh/known_hosts chmod 644 ~/.ssh/known_hosts eval $(ssh-agent -s) ssh-add <(echo "${{ secrets.SSH_KEY }}") echo "${{ secrets.VAULT_PASS }}" > ~/.vault_pass.txt - name: Install required dependencies run: | python3 -m pip install requests pyyaml ansible-core --break-system-packages ansible-galaxy collection install community.docker - name: Run update script run: python3 scripts/run_updates.py env: UPDATES_DISCORD_WEBHOOK: ${{vars.UPDATES_DISCORD_WEBHOOK}}