update repos #1104
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 repos | |
on: | |
schedule: | |
- cron: '0 1 * * *' | |
workflow_dispatch: | |
jobs: | |
refresh-overlay: | |
name: Refresh inputs | |
runs-on: ubuntu-latest | |
if: github.repository_owner == 'nix-giant' | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: cachix/install-nix-action@v27 | |
with: | |
nix_path: nixpkgs=channel:nixpkgs-unstable | |
- name: Configure Git | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
- name: Update inputs | |
run: | | |
./update | |
- name: Push commit with updated inputs | |
run: | | |
git pull --rebase --autostash | |
git push |