Skip to content

Commit af889e2

Browse files
authored
Merge pull request #109 from OpenVoxProject/builddddd
CI: comment download link to PR
2 parents fb73715 + ca726ea commit af889e2

2 files changed

Lines changed: 40 additions & 1 deletion

File tree

.github/pull_request_template.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!--
2+
Thank you for contributing to this project!
3+
4+
- This project has a Contributor Code of Conduct: https://voxpupuli.org/coc/
5+
- Please check that here is no existing issue or PR that addresses your problem.
6+
- Our vulnerabilities reporting process is at https://voxpupuli.org/security/
7+
8+
- The CI will build rpm and deb packages for openvoxdb. The packages will be
9+
stored in a zip archive and uploaded as GitHub artifacts.
10+
In the PR, go to Checks -> main. The archive will be linked at the bottom. It's
11+
always named openvoxdb-$(git describe). The artifacts are available for 24
12+
hours.
13+
14+
-->
15+
16+
#### Pull Request (PR) description
17+
<!--
18+
Replace this comment with a description of your pull request.
19+
-->
20+
21+
#### This Pull Request (PR) fixes the following issues
22+
<!--
23+
Replace this comment with the list of issues or n/a.
24+
Use format:
25+
Fixes #123
26+
Fixes #124
27+
-->

.github/workflows/main.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ jobs:
130130
build:
131131
name: build openvoxdb
132132
runs-on: ubuntu-24.04
133+
permissions:
134+
pull-requests: write
133135
steps:
134136
- name: checkout repo
135137
uses: actions/checkout@v6
@@ -154,13 +156,23 @@ jobs:
154156
DESCRIBE=$(git describe --abbrev=9)
155157
echo "describe=${DESCRIBE//-/.}" >> $GITHUB_OUTPUT
156158
- name: Upload build artifacts
159+
id: upload
157160
uses: actions/upload-artifact@v6
158161
with:
159162
name: openvoxdb-${{ steps.version.outputs.describe }}
160163
path: output/
161164
retention-days: 1 # quite low retention, because the artifacts are quite large
162165
overwrite: true # overwrite old artifacts if a PR runs again (artifacts are per PR * per project)
163-
166+
- name: Add comment
167+
uses: peter-evans/create-or-update-comment@v5
168+
# Check if the event is not triggered by a fork
169+
# https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#restrictions-on-repository-forks
170+
if: github.event.pull_request.head.repo.full_name == github.repository
171+
with:
172+
issue-number: ${{ github.event.pull_request.number }}
173+
body: |-
174+
The rpm/deb packages and the JAR file for openvoxdb are available in a zip archive:
175+
${{ steps.upload.outputs.artifact-url }}
164176
165177
termini-rspec:
166178
name: openvoxdb-termini RSpec

0 commit comments

Comments
 (0)