generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 4
31 lines (30 loc) · 875 Bytes
/
push-test.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
# test that run on each push to test the action in push workflow
name: 'push-test'
on: ['push']
jobs:
push-test-1:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# add a fake commit
- name: Add Commit
run: |
mkdir testzone && \
touch testzone/touched.txt && \
git config user.name 'Github Action' && \
git config user.email '[email protected]' && \
git add testzone/touched.txt && \
git commit -m "add testzone/touched.txt"
- uses: ./
id: filter
with:
head-ref: HEAD
filters: |
test:
- 'testzone/*.txt'
should-not-changed:
- 'not-exsits'
- name: Check Output
run: |
[[ "${{ steps.filter.outputs.test}}" = "true" ]] && \
[[ "${{ steps.filter.outputs.should-not-changed }}" = "false" ]]