Skip to content

Commit

Permalink
ci: enable auto-raise and merge PRs on remaining flakes
Browse files Browse the repository at this point in the history
After the success observed in
#201
  • Loading branch information
shivaraj-bh committed May 28, 2024
1 parent 5f7c8ca commit 86a9028
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/update-flake-lock-ex-share-northwind.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,34 @@ jobs:
example-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 ${{ steps.update-flake-lock.outputs.pull-request-number }}"
env:
GH_TOKEN: ${{ github.token }}

18 changes: 18 additions & 0 deletions .github/workflows/update-flake-lock-ex-share-pgweb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,34 @@ jobs:
example-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 ${{ steps.update-flake-lock.outputs.pull-request-number }}"
env:
GH_TOKEN: ${{ github.token }}

20 changes: 19 additions & 1 deletion .github/workflows/update-flake-lock-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,34 @@ jobs:
example-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(test): Update flake.lock"
pr-title: "Update test/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: 'test'
branch: "update_flake_lock_test"
branch: "update_flake_lock_test"
token: ${{ steps.github-app-token.outputs.token }}
- run: "gh pr merge --auto --rebase ${{ steps.update-flake-lock.outputs.pull-request-number }}"
env:
GH_TOKEN: ${{ github.token }}

0 comments on commit 86a9028

Please sign in to comment.