From 4282f77cbc19c7c1b385b296cc6589c098a20a6b Mon Sep 17 00:00:00 2001 From: codeallthethingz Date: Tue, 7 Jan 2025 19:45:49 -0800 Subject: [PATCH] action --- .github/actions/pin_comment/action.yml | 10 +++++++--- .github/workflows/docs-preview.yml | 3 +++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/actions/pin_comment/action.yml b/.github/actions/pin_comment/action.yml index 7dd6a3a..8c99ad0 100644 --- a/.github/actions/pin_comment/action.yml +++ b/.github/actions/pin_comment/action.yml @@ -14,13 +14,13 @@ inputs: comment_id: description: "Unique identifier for this pinned comment" required: true + working_directory: + description: "Path to the repository working directory" + required: true runs: using: "composite" steps: - - name: Checkout repository - uses: actions/checkout@v4 - - name: Pin comment shell: bash env: @@ -28,7 +28,11 @@ runs: MESSAGE: ${{ inputs.message }} ISSUE_NUMBER: ${{ inputs.issue_number }} COMMENT_ID: ${{ inputs.comment_id }} + WORKING_DIRECTORY: ${{ inputs.working_directory }} run: | + # Change to working directory + cd "${WORKING_DIRECTORY}" + # Create comment with hidden marker and ID COMMENT=" ${MESSAGE}" diff --git a/.github/workflows/docs-preview.yml b/.github/workflows/docs-preview.yml index c8ad3e7..85c9de1 100644 --- a/.github/workflows/docs-preview.yml +++ b/.github/workflows/docs-preview.yml @@ -32,6 +32,7 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} issue_number: ${{ github.event.pull_request.number }} comment_id: docs-preview + working_directory: tbp.monty message: | 📚 **Documentation Preview** @@ -90,6 +91,7 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} issue_number: ${{ github.event.pull_request.number }} comment_id: docs-preview + working_directory: tbp.monty message: | 📚 **Documentation Preview** @@ -104,6 +106,7 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} issue_number: ${{ github.event.pull_request.number }} comment_id: docs-preview + working_directory: tbp.monty message: | 📚 **Documentation Preview**