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

Setup a flake steward #20

Merged
merged 2 commits into from
Nov 28, 2022
Merged
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
51 changes: 51 additions & 0 deletions .github/workflows/flake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: http4s Flake Steward

on:
schedule:
- cron: '45 7 * * 2'
workflow_dispatch:

jobs:
lockfile:
strategy:
matrix:
repo:
- http4s/http4s
- http4s/http4s-dom
- http4s/http4s-jetty
- http4s/http4s-servlet
- http4s/http4s-tomcat
Comment on lines +13 to +17
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to add any I forgot.

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
repository: ${{ matrix.repo }}

- name: Install Nix
uses: cachix/install-nix-action@v17
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}

- name: Generate token
id: generate-token
uses: tibdex/github-app-token@v1
with:
app_id: 207529
private_key: ${{ secrets.STEWARD_PRIVATE_KEY }}

- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@v15
with:
token: ${{ steps.generate-token.outputs.token }}
branch: update/flake-lock
git-author-email: 106843772+http4s-steward[bot]@users.noreply.github.com
git-author-name: http4s-steward[bot]
git-committer-email: 106843772+http4s-steward[bot]@users.noreply.github.com
git-committer-name: http4s-steward[bot]
pr-body: |
Automated changes by the [update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) GitHub Action.

```
{{ env.GIT_COMMIT_MESSAGE }}
```