Skip to content

Commit 47d7183

Browse files
committed
ci: add GitHub workflow for testing remote custom actions on PR
1 parent 4ddeab5 commit 47d7183

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# .github/workflows/test-remote-actions.yml
2+
name: Test Remote Custom Actions
3+
4+
on:
5+
pull_request:
6+
branches:
7+
- main # 또는 테스트를 원하는 다른 브랜치
8+
9+
jobs:
10+
test_actions:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4 # 현재 저장소(binary01.me-notion-cms)의 코드를 체크아웃합니다.
15+
16+
- name: Run Remote Greet Action
17+
id: greet
18+
uses: 01-binary/github-action-test/actions/greet-action@main # 원격 액션 참조
19+
with:
20+
who-to-greet: 'Remote Tester Alice'
21+
22+
- name: Run Remote Goodbye Action
23+
id: goodbye
24+
uses: 01-binary/github-action-test/actions/goodbye-action@main # 원격 액션 참조
25+
with:
26+
who-to-say-goodbye: 'Remote Tester Bob'
27+
28+
- name: Print Greet Action Output
29+
run: |
30+
echo "Greet action said: ${{ steps.greet.outputs.time }}"
31+
32+
- name: Print Goodbye Action Output
33+
run: |
34+
echo "Goodbye action said: ${{ steps.goodbye.outputs.farewell-message }}"

0 commit comments

Comments
 (0)