.github/workflows/version.yml #200
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
--- | |
"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 }} |