Skip to content

Commit a69aaee

Browse files
committed
feat: add GitHub Actions workflow to set up and regenerate fixtures on labeled pull requests
1 parent 573da04 commit a69aaee

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Setup and regenerate fixtures
2+
3+
permissions:
4+
contents: write
5+
pull-requests: write
6+
7+
on:
8+
pull_request:
9+
types:
10+
- labeled
11+
12+
jobs:
13+
setup-and-regenerate-fixtures:
14+
if: github.event.label.name == 'regenerate-fixtures'
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
# No setup step needed, yet.
19+
- name: Regenerate Fixtures
20+
uses: codecrafters-io/tester-utils/.github/actions/fixtures@master
21+
with:
22+
tester_repo: git-tester
23+
github_token: ${{ secrets.GITHUB_TOKEN }}
24+
fixture_generation_token: ${{ secrets.TESTER_FIXTURE_GENERATION_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)