-
Notifications
You must be signed in to change notification settings - Fork 0
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
13 changed files
with
105 additions
and
48 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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Create Release branch | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version-bump: | ||
required: false | ||
type: choice | ||
options: | ||
- major | ||
- minor | ||
- patch | ||
default: patch | ||
description: 'Major, Minor, or Patch version bump' | ||
|
||
jobs: | ||
create_branch: | ||
name: 'Create Release Branch' | ||
runs-on: ubuntu-20.04 | ||
permissions: | ||
contents: write | ||
actions: write | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
steps: | ||
|
||
- name: Create Release Branch | ||
id: create_branch | ||
uses: pagopa/selfcare-commons/github-actions-template/create-release@main | ||
with: | ||
version_bump: ${{ inputs.version-bump }} | ||
github_path_token: ${{ secrets.GH_PAT_VARIABLES }} | ||
|
||
- name: Trigger release ms UAT Release | ||
run: | | ||
gh workflow run release_ms.yml \ | ||
--ref ${{ steps.create_branch.outputs.new_branch_name }} | ||
- name: Trigger PNPG release ms UAT Release | ||
run: | | ||
gh workflow run release_ms_pnpg.yml \ | ||
--ref ${{ steps.create_branch.outputs.new_branch_name }} | ||
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 |
---|---|---|
@@ -1,46 +1,21 @@ | ||
name: Swagger Update | ||
name: Swagger Detect Conflict and Update | ||
on: | ||
pull_request: | ||
branches: | ||
- release-dev | ||
types: [ opened, synchronize, reopened ] | ||
workflow_dispatch: #allow to run github action manually | ||
types: [ opened, synchronize, reopened ] | ||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
swagger_conflict_update: | ||
runs-on: ubuntu-20.04 | ||
permissions: write-all | ||
#if: github.event.pull_request.merged == true | ||
name: Swagger Detect Conflict and Update | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@f69f00b5e5324696b07f6b1c92f0470a6df00780 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
cache: maven | ||
- name: Check out HEAD revision | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
path: head | ||
- name: Check out BASE revision | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
with: | ||
ref: release-dev | ||
path: base | ||
- name: Build with Maven | ||
run: mvn test -Dtest=SwaggerConfigTest#swaggerSpringPlugin -DfailIfNoTests=false | ||
- name: Run OpenAPI Diff (from HEAD revision) | ||
uses: mvegter/openapi-diff-action@72cde50f8d3a75f770f08e23b815d5ebe69ff757 | ||
with: | ||
head-spec: head/app/src/main/resources/swagger/api-docs.json | ||
base-spec: base/app/src/main/resources/swagger/api-docs.json | ||
- name: Commit api-docs | ||
run: | | ||
git ls-files ./app** | grep 'api-docs*' | xargs git add | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "selfcare-github-bot" | ||
git commit -m "Update Swagger documentation" || exit 0 | ||
git push origin ${{ github.ref_name}} | ||
- id: swagger-conflict-update | ||
uses: pagopa/selfcare-commons/github-actions-template/swagger-detect-conflict-spring@main | ||
with: | ||
path_openapi_docs: app/src/main/resources/swagger/api-docs.json | ||
branch_ref: release-dev |
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
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
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
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
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