Skip to content

Commit db80465

Browse files
Atryfacebook-github-bot
authored andcommitted
Introduce a GitHub Action workflow to create pull requests to update dependencies (#9135)
Summary: We want to update dependencies to include latest security update. This PR introduce a GitHub Action workflow to create pull requests to update Nix dependencies. This PR fixes #9134 Pull Request resolved: #9135 Test Plan: #9133 is an example PR created by this Github Action. Note that this PR is pushed to a branch on facebook/hhvm instead of my forked repository, in order to test the pull request creation. Reviewed By: alexeyt Differential Revision: D38060266 Pulled By: Atry fbshipit-source-id: 31bf167f36bc1886d46d3a41cedafadf7a58d885
1 parent dbc46b6 commit db80465

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
on:
2+
schedule:
3+
- cron: "42 15 * * *"
4+
jobs:
5+
nix-flake-update:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/[email protected]
9+
- uses: cachix/install-nix-action@v15
10+
with:
11+
extra_nix_config: |
12+
extra-access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
13+
extra-experimental-features = nix-command flakes
14+
extra-substituters = s3://hhvm-nix-cache?region=us-west-2&endpoint=hhvm-nix-cache.s3-accelerate.amazonaws.com
15+
extra-trusted-substituters = s3://hhvm-nix-cache?region=us-west-2&endpoint=hhvm-nix-cache.s3-accelerate.amazonaws.com
16+
extra-trusted-public-keys = hhvm-nix-cache-1:MvKxscw16fAq6835oG8sbRgTGITb+1xGfYNhs+ee4yo=
17+
- run: nix flake update
18+
- uses: peter-evans/create-pull-request@v4
19+
with:
20+
branch: nix-flake-update/${{github.ref_name}}
21+
title: Update flake lock file
22+
commit-message: Update flake lock file

0 commit comments

Comments
 (0)