From 27d14cba7f568f06bfb4e0b0715f95b19207c975 Mon Sep 17 00:00:00 2001 From: Robbi Bishop-Taylor Date: Thu, 18 Jul 2024 16:54:22 +1000 Subject: [PATCH] Add comment bot --- .github/workflows/integration-test.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 3619bf0..7db56e4 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -22,6 +22,7 @@ on: permissions: id-token: write contents: read + pull-requests: write # Required for validation results comment bot jobs: integration-test: @@ -65,6 +66,15 @@ jobs: id: req run: echo "content=$(cat ./dea-sandbox/integration-testing/requirements.txt)" >> $GITHUB_OUTPUT + # Post requirements as a comment on the PR + - name: Post validation results as comment + uses: mshick/add-pr-comment@v2 + if: github.event_name == 'pull_request' + with: + message: | + Installed packages: + ${{ steps.req.outputs.content }} + - name: Set up Datacube and Test run: | cd ./dea-sandbox/integration-testing