From 93858141df9a691f5f6d42e74b1e9c2c66348252 Mon Sep 17 00:00:00 2001 From: Gabe Fierro Date: Fri, 9 Aug 2024 15:36:39 -0600 Subject: [PATCH] try to upload artifact on PR --- .github/workflows/builds.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index 714cac0b..b428bca5 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -34,12 +34,22 @@ jobs: make cat Brick.ttl - name: upload ttls + id: upload-ttls if: ${{ matrix.python-version }} == "3.10" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Brick-ontology path: | Brick.ttl + - name: comment artifact + # if the trigger is on a pull request + if: github.event_name == 'pull_request' + uses: peter-evans/create-or-update-comment@v4 + with: + issue-number: ${{ github.event.number }} + # in the body, make a markdown link to the steps.upload-ttls.output.artifact-url + body: | + The latest build of the Brick ontology on this PR is available [here](${{ steps.upload-ttls.outputs.artifact-url }}). - name: Run the tests # -s flag: do not capture output (avoids killing test after 10 min) run: |