From 2aea1d4fc8ecb85a793bdec63c15f85e60b89ab0 Mon Sep 17 00:00:00 2001 From: Aiqiao Yan <55104035+aiqiaoy@users.noreply.github.com> Date: Thu, 17 Apr 2025 21:04:14 +0000 Subject: [PATCH] add a ci test --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 31199d1..15e9ca5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -67,3 +67,28 @@ jobs: - name: Print Output id: output run: echo "${{ steps.test-action.outputs.response }}" + + test-action-prompt-file: + name: GitHub Actions Test with Prompt File + runs-on: ubuntu-latest + + steps: + - name: Checkout + id: checkout + uses: actions/checkout@v4 + + - name: Create Prompt File + run: echo "hello" > prompt.txt + + - name: Test Local Action with Prompt File + id: test-action-prompt-file + uses: ./ + with: + prompt-file: prompt.txt + env: + GITHUB_TOKEN: ${{ github.token }} + + - name: Print Output + run: | + echo "Response saved to: ${{ steps.test-action-prompt-file.outputs.response-file }}" + cat "${{ steps.test-action-prompt-file.outputs.response-file }}"