Update the data from the gnome screenshot repo #114
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 the data from the gnome screenshot repo | |
on: | |
schedule: | |
- cron: "0 0 * * 1" | |
workflow_dispatch: | |
permissions: write-all | |
jobs: | |
# Build job | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
# with: | |
# token: ${{ secrets.GH_ACCESS_TOKEN }} # Keep only if necessary | |
- name: Install Nix | |
uses: nixbuild/nix-quick-install-action@v21 | |
with: | |
nix_conf: experimental-features = nix-command flakes | |
- name: Build data | |
run: | | |
touch results | |
touch data | |
nix develop -c make gnome-backgrounds.rev | |
nix develop -c make results | |
nix develop -c make data | |
- uses: EndBug/add-and-commit@v9 # You can change this to use a specific version. | |
name: Commit data | |
with: | |
add: "data gnome-backgrounds.rev" | |
commit: --signoff | |
default_author: github_actions | |
message: "Update background data" | |
push: true |