From 54b135aaf7293c325a80fb54fefa713f2f5e15fa Mon Sep 17 00:00:00 2001 From: Victor Fernandez Saborit Date: Thu, 30 May 2024 09:51:54 +0200 Subject: [PATCH] CI/Introduce label checker & Auto release --- .github/workflows/check-semver.yml | 20 ++++++++++++++++++++ .github/workflows/release-on-push.yml | 17 +++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 .github/workflows/check-semver.yml create mode 100644 .github/workflows/release-on-push.yml diff --git a/.github/workflows/check-semver.yml b/.github/workflows/check-semver.yml new file mode 100644 index 0000000..0b3f71c --- /dev/null +++ b/.github/workflows/check-semver.yml @@ -0,0 +1,20 @@ +name: Label Checker + +on: + pull_request: + types: + - opened + - synchronize + - reopened + - labeled + - unlabeled + +jobs: + check_labels: + name: Check labels + runs-on: ubuntu-latest + steps: + - uses: docker://agilepathway/pull-request-label-checker:v1.6.13 + with: + one_of: norelease,release:major,release:minor,release:patch + repo_token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/release-on-push.yml b/.github/workflows/release-on-push.yml new file mode 100644 index 0000000..1d1a457 --- /dev/null +++ b/.github/workflows/release-on-push.yml @@ -0,0 +1,17 @@ +name: Release on Push + +on: + push: + branches: + - main + +jobs: + release_on_push: + runs-on: ubuntu-latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + steps: + - uses: rymndhng/release-on-push-action@v0.28.0 + with: + bump_version_scheme: norelease + use_github_release_notes: true \ No newline at end of file