Skip to content

Commit

Permalink
chore(ci): Use github actions matrix for flake.lock updates
Browse files Browse the repository at this point in the history
  • Loading branch information
shivaraj-bh committed Jul 29, 2024
1 parent c7e2533 commit c4b7918
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 168 deletions.
40 changes: 0 additions & 40 deletions .github/workflows/update-flake-lock-ex-llm.yaml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/update-flake-lock-ex-share-northwind.yaml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/update-flake-lock-ex-share-pgweb.yaml

This file was deleted.

40 changes: 0 additions & 40 deletions .github/workflows/update-flake-lock-ex-simple.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
name: update-flake-lock-test
name: update-flake-lock
on:
workflow_dispatch: # allows manual triggering
schedule:
- cron: '0 0 * * 0' # runs weekly on Sunday at 00:00

jobs:
update-test-lock:
update-flake-lock:
strategy:
matrix:
lock-file-dir: [ "test", "example/simple", "example/share-services/pgweb", "example/share-services/northwind" , "example/llm" ]
runs-on: ubuntu-latest
steps:
- name: Generate Github App Token
Expand All @@ -22,8 +25,8 @@ jobs:
uses: DeterminateSystems/update-flake-lock@main
id: update-flake-lock
with:
commit-msg: "chore(test): Update flake.lock"
pr-title: "Update test/flake.lock"
commit-msg: "chore(${{ matrix.lock-file-dir }}): Update flake.lock"
pr-title: "Update ${{ matrix.lock-file-dir }}/flake.lock"
pr-body: |
Automated changes by the [update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) GitHub Action.
Expand All @@ -32,8 +35,8 @@ jobs:
```
pr-labels: |
automated
path-to-flake-dir: 'test'
branch: "update_flake_lock_test"
path-to-flake-dir: '${{ matrix.lock-file-dir }}'
branch: "update_flake_lock_${{ martix.lock-file-dir }}"
token: ${{ steps.github-app-token.outputs.token }}
- run: "gh pr merge --auto --rebase --delete-branch ${{ steps.update-flake-lock.outputs.pull-request-number }}"
env:
Expand Down

0 comments on commit c4b7918

Please sign in to comment.