From 9f9767c2cf97e32c39e30c93799a0018bd9efa9d Mon Sep 17 00:00:00 2001 From: Anthony Gitter Date: Fri, 27 Mar 2020 10:51:05 -0500 Subject: [PATCH 1/2] Add static pull request comment message --- .github/workflows/manubot.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/manubot.yaml b/.github/workflows/manubot.yaml index 84c618d1..1c82e528 100644 --- a/.github/workflows/manubot.yaml +++ b/.github/workflows/manubot.yaml @@ -46,6 +46,21 @@ jobs: with: name: manuscript-${{ github.run_id }}-${{ env.TRIGGERING_SHA_7 }} path: output + - name: Create Artifact Comment + run: | + ARTIFACT_MESSAGE="GitHub Actions build 123456 for commit abcd123 by XXXXX is now complete. The rendered manuscript from this build is temporarily available." + echo "::set-env name=ARTIFACT_MESSAGE::$ARTIFACT_MESSAGE" + - name: Comment on Pull Request + uses: actions/github-script@0.9.0 + with: + github-token: ${{secrets.GITHUB_TOKEN}} + script: | + github.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: '${{ env.ARTIFACT_MESSAGE }}' + }) - name: Deploy Manuscript if: github.ref == 'refs/heads/master' && github.event_name == 'push' && !github.event.repository.fork env: From eef551ccfa4bab4006e29a7534fe02116c861418 Mon Sep 17 00:00:00 2001 From: Anthony Gitter Date: Fri, 27 Mar 2020 12:20:11 -0500 Subject: [PATCH 2/2] Enable debug mode --- .github/workflows/manubot.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/manubot.yaml b/.github/workflows/manubot.yaml index 1c82e528..ef19769e 100644 --- a/.github/workflows/manubot.yaml +++ b/.github/workflows/manubot.yaml @@ -53,6 +53,7 @@ jobs: - name: Comment on Pull Request uses: actions/github-script@0.9.0 with: + debug: true github-token: ${{secrets.GITHUB_TOKEN}} script: | github.issues.createComment({