diff --git a/.github/workflows/update-flake-lock-ex-llm.yaml b/.github/workflows/update-flake-lock-ex-llm.yaml deleted file mode 100644 index 73c344b7..00000000 --- a/.github/workflows/update-flake-lock-ex-llm.yaml +++ /dev/null @@ -1,40 +0,0 @@ -name: update-flake-lock-ex-llm -on: - workflow_dispatch: # allows manual triggering - schedule: - - cron: '0 0 * * 0' # runs weekly on Sunday at 00:00 - -jobs: - update-ex-llm-lock: - runs-on: ubuntu-latest - steps: - - name: Generate Github App Token - uses: navikt/github-app-token-generator@v1 - id: github-app-token - with: - app-id: ${{ vars.NIXOS_ASIA_APP_ID }} - private-key: ${{ secrets.NIXOS_ASIA_PRIVATE_KEY }} - - name: Checkout repository - uses: actions/checkout@v4 - - name: Install Nix - uses: DeterminateSystems/nix-installer-action@main - - name: Update flake.lock - uses: DeterminateSystems/update-flake-lock@main - id: update-flake-lock - with: - commit-msg: "chore(example): Update llm/flake.lock" - pr-title: "Update example/llm/flake.lock" - pr-body: | - Automated changes by the [update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) GitHub Action. - - ``` - {{ env.GIT_COMMIT_MESSAGE }} - ``` - pr-labels: | - automated - path-to-flake-dir: 'example/llm' - branch: "update_flake_lock_ex_llm" - token: ${{ steps.github-app-token.outputs.token }} - - run: "gh pr merge --auto --rebase --delete-branch ${{ steps.update-flake-lock.outputs.pull-request-number }}" - env: - GH_TOKEN: ${{ github.token }} diff --git a/.github/workflows/update-flake-lock-ex-share-northwind.yaml b/.github/workflows/update-flake-lock-ex-share-northwind.yaml deleted file mode 100644 index d342dbef..00000000 --- a/.github/workflows/update-flake-lock-ex-share-northwind.yaml +++ /dev/null @@ -1,41 +0,0 @@ -name: update-flake-lock-ex-share-northwind -on: - workflow_dispatch: # allows manual triggering - schedule: - - cron: '0 0 * * 0' # runs weekly on Sunday at 00:00 - -jobs: - update-ex-share-lock: - runs-on: ubuntu-latest - steps: - - name: Generate Github App Token - uses: navikt/github-app-token-generator@v1 - id: github-app-token - with: - app-id: ${{ vars.NIXOS_ASIA_APP_ID }} - private-key: ${{ secrets.NIXOS_ASIA_PRIVATE_KEY }} - - name: Checkout repository - uses: actions/checkout@v4 - - name: Install Nix - uses: DeterminateSystems/nix-installer-action@main - - name: Update flake.lock - uses: DeterminateSystems/update-flake-lock@main - id: update-flake-lock - with: - commit-msg: "chore(example): Update share-services/northwind/flake.lock" - pr-title: "Update example/share-services/northwind/flake.lock" - pr-body: | - Automated changes by the [update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) GitHub Action. - - ``` - {{ env.GIT_COMMIT_MESSAGE }} - ``` - pr-labels: | - automated - path-to-flake-dir: 'example/share-services/northwind' - branch: "update_flake_lock_ex_share_northwind" - token: ${{ steps.github-app-token.outputs.token }} - - run: "gh pr merge --auto --rebase --delete-branch ${{ steps.update-flake-lock.outputs.pull-request-number }}" - env: - GH_TOKEN: ${{ github.token }} - diff --git a/.github/workflows/update-flake-lock-ex-share-pgweb.yaml b/.github/workflows/update-flake-lock-ex-share-pgweb.yaml deleted file mode 100644 index f8d2562c..00000000 --- a/.github/workflows/update-flake-lock-ex-share-pgweb.yaml +++ /dev/null @@ -1,41 +0,0 @@ -name: update-flake-lock-ex-share-pgweb -on: - workflow_dispatch: # allows manual triggering - schedule: - - cron: '0 0 * * 0' # runs weekly on Sunday at 00:00 - -jobs: - update-ex-share-lock: - runs-on: ubuntu-latest - steps: - - name: Generate Github App Token - uses: navikt/github-app-token-generator@v1 - id: github-app-token - with: - app-id: ${{ vars.NIXOS_ASIA_APP_ID }} - private-key: ${{ secrets.NIXOS_ASIA_PRIVATE_KEY }} - - name: Checkout repository - uses: actions/checkout@v4 - - name: Install Nix - uses: DeterminateSystems/nix-installer-action@main - - name: Update flake.lock - uses: DeterminateSystems/update-flake-lock@main - id: update-flake-lock - with: - commit-msg: "chore(example): Update share-services/pgweb/flake.lock" - pr-title: "Update example/share-services/pgweb/flake.lock" - pr-body: | - Automated changes by the [update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) GitHub Action. - - ``` - {{ env.GIT_COMMIT_MESSAGE }} - ``` - pr-labels: | - automated - path-to-flake-dir: 'example/share-services/pgweb' - branch: "update_flake_lock_ex_share_pgweb" - token: ${{ steps.github-app-token.outputs.token }} - - run: "gh pr merge --auto --rebase --delete-branch ${{ steps.update-flake-lock.outputs.pull-request-number }}" - env: - GH_TOKEN: ${{ github.token }} - diff --git a/.github/workflows/update-flake-lock-ex-simple.yaml b/.github/workflows/update-flake-lock-ex-simple.yaml deleted file mode 100644 index 27bb1a1e..00000000 --- a/.github/workflows/update-flake-lock-ex-simple.yaml +++ /dev/null @@ -1,40 +0,0 @@ -name: update-flake-lock-ex-simple -on: - workflow_dispatch: # allows manual triggering - schedule: - - cron: '0 0 * * 0' # runs weekly on Sunday at 00:00 - -jobs: - update-ex-simple-lock: - runs-on: ubuntu-latest - steps: - - name: Generate Github App Token - uses: navikt/github-app-token-generator@v1 - id: github-app-token - with: - app-id: ${{ vars.NIXOS_ASIA_APP_ID }} - private-key: ${{ secrets.NIXOS_ASIA_PRIVATE_KEY }} - - name: Checkout repository - uses: actions/checkout@v4 - - name: Install Nix - uses: DeterminateSystems/nix-installer-action@main - - name: Update flake.lock - uses: DeterminateSystems/update-flake-lock@main - id: update-flake-lock - with: - commit-msg: "chore(example): Update simple/flake.lock" - pr-title: "Update example/simple/flake.lock" - pr-body: | - Automated changes by the [update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) GitHub Action. - - ``` - {{ env.GIT_COMMIT_MESSAGE }} - ``` - pr-labels: | - automated - path-to-flake-dir: 'example/simple' - branch: "update_flake_lock_ex_simple" - token: ${{ steps.github-app-token.outputs.token }} - - run: "gh pr merge --auto --rebase --delete-branch ${{ steps.update-flake-lock.outputs.pull-request-number }}" - env: - GH_TOKEN: ${{ github.token }} diff --git a/.github/workflows/update-flake-lock-test.yaml b/.github/workflows/update-flake-lock.yaml similarity index 71% rename from .github/workflows/update-flake-lock-test.yaml rename to .github/workflows/update-flake-lock.yaml index d29e8c1a..e27ec330 100644 --- a/.github/workflows/update-flake-lock-test.yaml +++ b/.github/workflows/update-flake-lock.yaml @@ -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 @@ -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. @@ -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: