Skip to content

.github/workflows/version.yml #182

.github/workflows/version.yml

.github/workflows/version.yml #182

Workflow file for this run

---
"on":
schedule:
# 18:00 on Friday
- cron: 0 18 * * 5
workflow_dispatch:
# https://github.com/softprops/action-gh-release/issues/236
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# https://github.com/orgs/community/discussions/25702
persist-credentials: false
- uses: cachix/install-nix-action@v23
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
extra_nix_config: |
experimental-features = nix-command flakes
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Install dependency
run: |
nix run 'nixpkgs#nvfetcher'
- name: Update version
run: |
scripts/git-commit.sh
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}