Skip to content

Commit 2aea1d4

Browse files
committed
add a ci test
1 parent 1c557cd commit 2aea1d4

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,28 @@ jobs:
6767
- name: Print Output
6868
id: output
6969
run: echo "${{ steps.test-action.outputs.response }}"
70+
71+
test-action-prompt-file:
72+
name: GitHub Actions Test with Prompt File
73+
runs-on: ubuntu-latest
74+
75+
steps:
76+
- name: Checkout
77+
id: checkout
78+
uses: actions/checkout@v4
79+
80+
- name: Create Prompt File
81+
run: echo "hello" > prompt.txt
82+
83+
- name: Test Local Action with Prompt File
84+
id: test-action-prompt-file
85+
uses: ./
86+
with:
87+
prompt-file: prompt.txt
88+
env:
89+
GITHUB_TOKEN: ${{ github.token }}
90+
91+
- name: Print Output
92+
run: |
93+
echo "Response saved to: ${{ steps.test-action-prompt-file.outputs.response-file }}"
94+
cat "${{ steps.test-action-prompt-file.outputs.response-file }}"

0 commit comments

Comments
 (0)