Skip to content

Commit 815a4ec

Browse files
committed
Test auto update script in PRs
1 parent f8ec2d3 commit 815a4ec

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/workflows/main.yml

+21-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
- main
66

77
jobs:
8-
check:
8+
build:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v4
@@ -14,3 +14,23 @@ jobs:
1414

1515
- name: build
1616
run: nix-build -A ci
17+
18+
test-update:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- uses: cachix/install-nix-action@v26
24+
25+
- name: test update script
26+
run: |
27+
nix-build -A autoPrUpdate
28+
{
29+
result/bin/auto-pr-update .
30+
echo ""
31+
echo '```diff'
32+
git diff
33+
echo '```'
34+
} > $GITHUB_STEP_SUMMARY
35+
env:
36+
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)