Skip to content

Commit

Permalink
try to upload artifact on PR
Browse files Browse the repository at this point in the history
  • Loading branch information
gtfierro committed Aug 9, 2024
1 parent 27f7104 commit 9385814
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 9385814

Please sign in to comment.