From e6ec547534c3d76b880367d7bfc5bec53be18ba0 Mon Sep 17 00:00:00 2001 From: testvalue Date: Tue, 14 Apr 2026 11:30:07 -0400 Subject: [PATCH] chore: adds spike test workflow --- .github/workflows/spike-test.yml | 35 ++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/spike-test.yml diff --git a/.github/workflows/spike-test.yml b/.github/workflows/spike-test.yml new file mode 100644 index 00000000..ea49dfa1 --- /dev/null +++ b/.github/workflows/spike-test.yml @@ -0,0 +1,35 @@ +name: Spike Test +on: + workflow_dispatch: + inputs: + issue_number: + description: 'Issue number to comment on' + required: true + type: string + action: + description: 'Action to perform' + required: true + type: choice + options: + - comment + - close +jobs: + act: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - name: Comment on issue + if: inputs.action == 'comment' + run: | + gh api --method POST "/repos/${{ github.repository }}/issues/${{ inputs.issue_number }}/comments" \ + -f body="Bot comment from github-actions[bot] — spike test at $(date -u)" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Close issue + if: inputs.action == 'close' + run: | + gh api --method PATCH "/repos/${{ github.repository }}/issues/${{ inputs.issue_number }}" \ + -f state=closed + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}