Skip to content

Commit f37bc9f

Browse files
committed
[Examples][CI] Add workflow which can be run by adding a label
1 parent 7b9e334 commit f37bc9f

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Run Examples
2+
3+
on:
4+
pull_request:
5+
types: [labeled]
6+
7+
jobs:
8+
run-examples:
9+
if: github.event.label.name == 'Run examples'
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Echo Hello World
17+
run: echo "Hello World"
18+
19+
- name: Remove label
20+
uses: actions/github-script@v7
21+
with:
22+
script: |
23+
await github.rest.issues.removeLabel({
24+
owner: context.repo.owner,
25+
repo: context.repo.repo,
26+
issue_number: context.issue.number,
27+
name: 'Run examples'
28+
});

0 commit comments

Comments
 (0)