Skip to content

Commit e72e96d

Browse files
committed
Add job check
1 parent 36d8e70 commit e72e96d

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/issue-release-workflow.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,37 @@ on:
2525
issues:
2626
types:
2727
- opened
28+
pull_request:
29+
types:
30+
- milestoned
31+
- closed
2832

2933
env:
3034
COMMENT_BODY: ${{ github.event.action == 'opened' && github.event.issue.body || github.event.comment.body }}
3135

3236
jobs:
37+
job-check:
38+
name: Job Check
39+
runs-on: ubuntu-22.04
40+
if: github.repository == 'llvm/llvm-project'
41+
steps:
42+
- name: Dump GitHub context
43+
env:
44+
GITHUB_CONTEXT: ${{ toJson(github) }}
45+
run: echo "$GITHUB_CONTEXT"
46+
47+
- name: Job Check
48+
uses: actions/github-script@v7
49+
with:
50+
script: |
51+
if (context.pull_request) {
52+
console.log("Is Pull Request");
53+
}
54+
if (context.issue) {
55+
console.log("Is Issue");
56+
}
57+
58+
3359
backport-commits:
3460
name: Backport Commits
3561
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)