-
-
Notifications
You must be signed in to change notification settings - Fork 730
51 lines (41 loc) · 1.23 KB
/
gitar-duet-action.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Gitar Duet
on:
push:
branches:
- 'gitar_*'
jobs:
gitar-duet:
if: github.event.head_commit.author.name == 'Gitar'
runs-on: ubuntu-latest
name: Gitar Duet
permissions:
contents: write # Required to update with Gitar Duet changes
steps:
- run: |
echo '${{ toJSON(github.event) }}'
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'yarn'
- name: Enable corepack
run: corepack enable
- run: yarn install --immutable
env:
YARN_ENABLE_SCRIPTS: false
- run: |
yarn run biome check --fix --unsafe || true # Run unsafe auto-fixes
yarn lint:fix || true # Fix linting issues
- run: yarn test:updateSnapshot || true # Update test snapshots
- run: |
# Undo deletes for snapshots
git reset
git diff --diff-filter=D --name-only HEAD | xargs git checkout HEAD^ --
- name: Run Gitar Duet Action
uses: gitarcode/gitar-duet-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}