forked from alexandru-slobodcicov/liquibase-mongodb
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #388 from liquibase/DAT-15071
DAT-15071 automatically bump version via the release workflow
- Loading branch information
Showing
3 changed files
with
28 additions
and
24 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 |
---|---|---|
|
@@ -39,16 +39,14 @@ jobs: | |
echo "Saw Extension version ${{ steps.collect-data.outputs.extensionVersion }}" | ||
release-prepare: | ||
uses: liquibase/build-logic/.github/workflows/[email protected] | ||
with: | ||
perform-release: false | ||
perform-rollback: false | ||
uses: liquibase/build-logic/.github/workflows/[email protected] | ||
needs: [ setup ] | ||
secrets: inherit | ||
|
||
build: | ||
name: "Build and Test" | ||
runs-on: ubuntu-latest | ||
needs: setup | ||
needs: [ setup, release-prepare] | ||
outputs: | ||
releaseSha: ${{ steps.get-release-sha.outputs.releaseSha }} | ||
steps: | ||
|
@@ -57,6 +55,11 @@ jobs: | |
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token | ||
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo | ||
|
||
- name: Update branch with latest commits # needed for getting the latest pom.xml generated by release-prepare step | ||
run: | | ||
git pull origin ${{ env.GITHUB_REF_NAME }} | ||
git checkout HEAD~1 | ||
- name: Cache Built Code | ||
uses: actions/cache@v2 | ||
with: | ||
|
@@ -102,6 +105,7 @@ jobs: | |
name: liquibase-mongodb | ||
path: | | ||
target/*.jar | ||
pom.xml | ||
integration-tests: | ||
name: Java ${{ matrix.java }} | ||
|
@@ -147,24 +151,12 @@ jobs: | |
tag_name: liquibase-mongodb-${{ needs.setup.outputs.extensionVersion }} | ||
draft: true | ||
body: Support for Liquibase ${{ needs.setup.outputs.liquibaseVersion }}. | ||
files: liquibase-mongodb-*.jar | ||
files: target/liquibase-mongodb-*.jar | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
release-perform: | ||
needs: [ setup, release-prepare, build, integration-tests, draft-release ] | ||
if: ${{ success() }} | ||
uses: liquibase/build-logic/.github/workflows/[email protected] | ||
with: | ||
perform-release: true | ||
perform-rollback: false | ||
secrets: inherit | ||
|
||
release-rollback: | ||
needs: [ setup, release-prepare, build, integration-tests, draft-release ] | ||
if: ${{ failure() }} | ||
uses: liquibase/build-logic/.github/workflows/[email protected] | ||
with: | ||
perform-release: false | ||
perform-rollback: true | ||
uses: liquibase/build-logic/.github/workflows/[email protected] | ||
secrets: inherit |
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