-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (34 loc) · 904 Bytes
/
dogfood.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Dogfood Test
on:
push:
branches: [main]
paths:
- "src/**"
- action.yml
- ".github/wiki/**"
- ".github/workflows/test.yml"
pull_request:
branches: [main]
paths:
- "src/**"
- action.yml
- ".github/wiki/**"
- ".github/workflows/test.yml"
# We don't want cancel-in-progress because we want each test (if there are
# multiple at a given time) to still attempt to push to the wiki. This should
# not cause any hiccups on the wiki since any and all tests are publishing in
# the same content.
concurrency: test
permissions:
contents: write
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Write Rev
run: 'git log -1 --format="%H" > .github/wiki/Rev.md'
- uses: ./
with:
token: ${{ secrets.GITHUB_TOKEN }}
dry-run: ${{ github.ref != 'main' }}