Update Yandex.Browser hashes #969
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 Yandex.Browser hashes" | |
on: | |
schedule: | |
- cron: "17 9,21 * * *" | |
workflow_dispatch: | |
jobs: | |
update-hashes: | |
name: Update Yandex.Browser hashes | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- uses: cachix/install-nix-action@v20 | |
with: | |
extra_nix_config: | | |
min-free = 3000000000 | |
max-free = 6000000000 | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: nix-yandex-browser | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- run: | | |
set -x | |
git config --local user.email "${{ github.actor }}@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
nix run .#update_browser | |
nix run .#update_codecs | |
STATUS=$(git status -s) | |
if [ -n "$STATUS" ]; then | |
git add json | |
git commit -m "$(date) hashes" | |
git push | |
fi |