-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
930 changed files
with
21,397 additions
and
11,711 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
.*ignore | ||
*.md | ||
*.log | ||
config/database.yml | ||
docker/prod/Dockerfile | ||
docker/ci/Dockerfile | ||
Guardfile | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Check work package version | ||
|
||
on: | ||
pull_request: | ||
types: [labeled, synchronize] | ||
|
||
permissions: | ||
contents: read # to fetch code (actions/checkout) | ||
pull-requests: write # to comment on the PR | ||
|
||
jobs: | ||
version-check: | ||
if: contains(github.event.pull_request.labels.*.name, 'needs review') | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
|
||
- name: Verify linked version matches core version | ||
id: version-check | ||
env: | ||
PR_BODY: ${{ github.event.pull_request.body }} | ||
run: ./script/ci/version_check.sh "$PR_BODY" | ||
|
||
- name: Add comment if versions differ | ||
if: steps.version-check.outputs.version_mismatch == 'true' | ||
uses: marocchino/sticky-pull-request-comment@v2 | ||
with: | ||
header: version-mismatch-comment | ||
message: | | ||
> [!CAUTION] | ||
> The provided work package version does not match the core version | ||
Details: | ||
- Work package URL: ${{ steps.version-check.outputs.wp_url }} | ||
- Work package version: ${{steps.version-check.outputs.wp_version}} | ||
- Core version: ${{steps.version-check.outputs.core_version}} | ||
Please make sure that: | ||
- The work package version OR your pull request target branch is correct | ||
- name: Version check passed | ||
if: steps.version-check.outputs.version_mismatch != 'true' | ||
uses: marocchino/sticky-pull-request-comment@v2 | ||
with: | ||
header: version-mismatch-comment | ||
delete: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.