Skip to content

Commit c2e158c

Browse files
authored
test!
1 parent 5850245 commit c2e158c

File tree

1 file changed

+39
-12
lines changed

1 file changed

+39
-12
lines changed

.github/workflows/test-action.yml

Lines changed: 39 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,46 @@
11
name: Test action [MANUAL]
22
on:
3+
push:
4+
branches: "main"
5+
paths-ignore:
6+
- .gitignore
7+
- README.md
8+
- LICENSE
9+
- .github/**
10+
- "!.github/workflows/test-action.yml"
311
pull_request:
4-
types: [opened, reopened]
12+
paths-ignore:
13+
- .gitignore
14+
- README.md
15+
- LICENSE
16+
- .github/**
17+
- "!.github/workflows/test-action.yml"
18+
concurrency:
19+
group: ${{ github.workflow }}
20+
cancel-in-progress: true
521
jobs:
6-
test-action:
22+
branch:
23+
concurrency: ${{ github.workflow }}-branch
724
permissions:
8-
issues: write
9-
pull-requests: write
25+
contents: write
1026
runs-on: ubuntu-latest
1127
steps:
12-
- run: gh pr comment "$NUMBER" --body "$BODY"
13-
env:
14-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15-
GH_REPO: ${{ github.repository }}
16-
NUMBER: ${{ github.event.pull_request.number }}
17-
BODY: >
18-
Make sure you test your changes by forking and playing around with
19-
[actions4git/add-commit-push-test](https://github.com/actions4git/add-commit-push-test)
28+
- uses: actions/checkout@v4
29+
- uses: actions/setup-node@v4
30+
with:
31+
node-version: "20"
32+
cache: npm
33+
- run: npm ci
34+
- run: npm run build
35+
- shell: bash
36+
run: |
37+
shopt -s dotglob nullglob
38+
mv ./* ../add-commit-push
39+
- uses: actions/checkout@v4
40+
with:
41+
ref: test-branch
42+
- shell: bash
43+
run: echo $RANDOM > README.txt
44+
- uses: ./
45+
# pull-request:
46+
# pull-request-fork:

0 commit comments

Comments
 (0)