Skip to content

Update Yandex.Browser hashes (web3) #1127

Update Yandex.Browser hashes (web3)

Update Yandex.Browser hashes (web3) #1127

Workflow file for this run

name: "Update Yandex.Browser hashes (web3)"
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
ref: web3
- 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 shell nixpkgs\#nodejs-16_x -c echo "${{ secrets.WEB3_TOKEN }}" | npx @web3-storage/w3 token
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