mirror of
https://github.com/orhun/git-cliff.git
synced 2024-09-11 06:55:38 +03:00
chore(ci): temporarily disable semver checks
waiting for https://github.com/obi1kenobi/cargo-semver-checks-action/pull/65
This commit is contained in:
parent
4a7aa7e91f
commit
f26fbe09ff
53
.github/workflows/check-semver.yml
vendored
Normal file
53
.github/workflows/check-semver.yml
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
name: Check Semver
|
||||
|
||||
# on:
|
||||
# pull_request:
|
||||
# branches:
|
||||
# - main
|
||||
|
||||
on: workflow_dispatch
|
||||
|
||||
jobs:
|
||||
check-semver:
|
||||
name: Check semver
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
error_message: ${{ steps.check_semver.outputs.error_message }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Run cargo-semver-checks
|
||||
id: check_semver
|
||||
uses: orhun/cargo-semver-checks-action@feat/add_action_output
|
||||
|
||||
comment-on-pr:
|
||||
name: Comment on pull request
|
||||
runs-on: ubuntu-latest
|
||||
needs: check-semver
|
||||
if: always()
|
||||
permissions:
|
||||
pull-requests: write
|
||||
steps:
|
||||
- name: Comment
|
||||
if: ${{ needs.check-semver.outputs.error_message != null }}
|
||||
uses: marocchino/sticky-pull-request-comment@v2
|
||||
with:
|
||||
header: pr-semver-check-error
|
||||
message: |
|
||||
Thank you for opening this pull request!
|
||||
|
||||
Reviewer note: [cargo-semver-checks](https://github.com/obi1kenobi/cargo-semver-checks) reported the current version number is not SemVer-compatible with the changes made since the last release.
|
||||
|
||||
Details:
|
||||
|
||||
```
|
||||
${{ needs.check-semver.outputs.error_message }}
|
||||
```
|
||||
|
||||
- name: Delete comment
|
||||
if: ${{ needs.check-semver.outputs.error_message == null }}
|
||||
uses: marocchino/sticky-pull-request-comment@v2
|
||||
with:
|
||||
header: pr-semver-check-error
|
||||
delete: true
|
31
.github/workflows/ci.yml
vendored
31
.github/workflows/ci.yml
vendored
@ -42,37 +42,6 @@ jobs:
|
||||
- name: Check typos
|
||||
uses: crate-ci/typos@master
|
||||
|
||||
semver:
|
||||
name: Semver
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Check semver
|
||||
id: check_semver
|
||||
uses: obi1kenobi/cargo-semver-checks-action@v2
|
||||
with:
|
||||
package: git-cliff-core
|
||||
- name: Comment on PR
|
||||
if: always() && (steps.check_semver.outputs.error_message != null) && (github.event_name == 'pull_request')
|
||||
uses: marocchino/sticky-pull-request-comment@v2
|
||||
with:
|
||||
header: pr-semver-check-error
|
||||
message: |
|
||||
Thank you for opening this pull request! ⛰️
|
||||
|
||||
There seems to be semver incompatibility issues reported by [cargo-semver-checks](https://github.com/obi1kenobi/cargo-semver-checks).
|
||||
|
||||
Details:
|
||||
|
||||
> ${{ steps.check_semver.outputs.error_message }}
|
||||
- name: Update comment on PR
|
||||
uses: marocchino/sticky-pull-request-comment@v2
|
||||
if: (steps.check_semver.outputs.error_message == null) && (github.event_name == 'pull_request')
|
||||
with:
|
||||
header: pr-semver-check-error
|
||||
delete: true
|
||||
|
||||
test:
|
||||
name: Test suite
|
||||
runs-on: ubuntu-22.04
|
||||
|
Loading…
Reference in New Issue
Block a user