Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): Use github actions matrix for flake.lock updates #286

Merged
merged 1 commit into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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