Skip to content

Commit d38f8b9

Browse files
committed
add github workflow for test
1 parent 94f4a65 commit d38f8b9

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/workflows/test_action.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Test Action
2+
on:
3+
pull_request:
4+
branches: ["main"]
5+
push:
6+
branches: ["main"]
7+
8+
jobs:
9+
check-pr-is-updated:
10+
runs-on: ubuntu-latest
11+
name: Test if the PR is updated
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
17+
- name: Review PR diff
18+
id: check_pr_is_updated
19+
uses: ./ # Uses an action in the root directory
20+
# or use a released Github Action
21+
# uses: osl-incubator/gh-check-pr-is-updated@1.0.0
22+
with:
23+
remote_branch: 'origin/main'
24+
pr_sha: ${{ github.event.pull_request.head.sha }}

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,3 @@ dmypy.json
132132

133133
# experimental
134134
dev.yaml
135-
.github

0 commit comments

Comments
 (0)