From c2ca011fa2539d4b8d63f3e69155031046e00323 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Wed, 23 Oct 2024 17:19:12 -0400 Subject: [PATCH] fix: Update to MorphoCloud/MorphoCloudWorkflow@7bc926d List of MorphoCloudWorkflow changes: ``` $ git shortlog a4ec942..7bc926d --no-merges Jean-Christophe Fillion-Robin (1): feat: Add "update-issue-from-workflow" ``` See https://github.com/MorphoCloud/MorphoCloudWorkflow/compare/a4ec942...7bc926d --- .../workflows/update-issue-from-workflow.yml | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/update-issue-from-workflow.yml diff --git a/.github/workflows/update-issue-from-workflow.yml b/.github/workflows/update-issue-from-workflow.yml new file mode 100644 index 00000000..0f79270c --- /dev/null +++ b/.github/workflows/update-issue-from-workflow.yml @@ -0,0 +1,54 @@ +name: Update Issue from Workflow + +on: + workflow_dispatch: + inputs: + issue_number: + description: "Issue number" + required: true + type: number + command_name: + description: + "Name of the command to execute: encode_email, decode_email" + required: true + type: string + workflow_call: + inputs: + issue_number: + description: "Issue number" + required: true + type: number + command_name: + description: + "Name of the command to execute: encode_email, decode_email" + required: true + type: string +permissions: + issues: write + checks: read + +jobs: + control: + runs-on: self-hosted + steps: + - uses: actions/checkout@v4 + + - name: Add comment + run: | + gh issue comment $ISSUE_NUMBER \ + -b "Command ${COMMAND_NAME} issued by **update-issue-from-workflow.yml** workflow
\ +
\ + For details, see https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}_" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} + ISSUE_NUMBER: ${{ inputs.issue_number }} + COMMAND_NAME: ${{ inputs.command_name }} + + - name: Update issue + uses: ./.github/actions/update-issue-description + with: + issue_number: ${{ inputs.issue_number }} + command_name: ${{ inputs.command_name }} + token: ${{ secrets.GITHUB_TOKEN }} + string_encryption_key: ${{ secrets.STRING_ENCRYPTION_KEY }}