aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/yae.yaml
blob: 125076f5eeefe90d1f937d3dc2c3388a2c2436f3 (plain) (blame)
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
---
name: Yae Update
on:
  workflow_dispatch:
  schedule:
    - cron: 0 */6 * * *
jobs:
  update:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: DeterminateSystems/nix-installer-action@main
      - uses: DeterminateSystems/magic-nix-cache-action@main
      - name: Install Yae
        run: nix --accept-flake-config profile install "github:Fuwn/yae"
      - name: Yae Update
        id: yae_update
        run: yae --silent update --output-formatted-updated-list | tee yae_update_output.txt
      - name: Commit and Push Changes
        run: |-
          git config --global user.name 'github-actions[bot]'
          git config --global user.email 'github-actions[bot]@users.noreply.github.com'
          git add .
          git diff-index --quiet HEAD || git commit -m "feat(packages): yae says bump $(cat yae_update_output.txt | tr -d '\n')"
          git pull
          git push