-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (32 loc) · 1.05 KB
/
openshift-auto-upgrade.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: update-openshift-packages
on:
workflow_dispatch: # allows manual triggering
schedule:
- cron: '0 1 * * 0' # runs weekly on Sunday at 00:00
jobs:
refresh-packages:
runs-on: ubuntu-latest
if: github.repository_owner == 'vdemeester'
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install Nix
uses: cachix/install-nix-action@3715ab1a11cac9e991980d7b4a28d80c7ebdd8f9 # v27
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
nix_path: nixpkgs=channel:nixos-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 status
git add repos
git commit -m "Auto-update packages"
git pull --rebase --autostash
git push