Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DAT-18309 DevOps :: Extensions are creating 2 tags #234

Merged
merged 9 commits into from
Aug 5, 2024
2 changes: 0 additions & 2 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,3 @@ template: |
## Changes

$CHANGES

**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...$REPOSITORY-v$RESOLVED_VERSION
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as liquibase/liquibase so it ca be auto generated

2 changes: 1 addition & 1 deletion .github/workflows/extension-attach-artifact-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ jobs:
version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
RELEASE_TITLE="v$version"
echo "Updating release title to $RELEASE_TITLE"
curl -X PATCH -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" -H "Authorization: Bearer ${{ secrets.BOT_TOKEN }}" -d '{"name": "'"$RELEASE_TITLE"'"}' "https://api.github.com/repos/${{ github.repository }}/releases/${{ env.RELEASE_ID }}"
curl -X PATCH -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" -H "Authorization: Bearer ${{ secrets.BOT_TOKEN }}" -d '{"name": "'"$RELEASE_TITLE"'", "tag_name": "'"v$version"'"}' "https://api.github.com/repos/${{ github.repository }}/releases/${{ env.RELEASE_ID }}"

- name: Attach Files to Draft Release
id: upload-release-asset
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/extension-release-prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ jobs:
mvn -B build-helper:parse-version release:clean release:prepare \
-Darguments="-Dusername=liquibot -Dpassword=${{ secrets.BOT_TOKEN }} -Dmaven.javadoc.skip=true -Dmaven.test.skipTests=true -Dmaven.test.skip=true -Dmaven.deploy.skip=true" \
-DdevelopmentVersion=\${parsedVersion.majorVersion}.\${parsedVersion.nextMinorVersion}.0-SNAPSHOT -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.nextMinorVersion}.\${parsedVersion.incrementalVersion} \
-DcheckModificationExcludeList=pom.xml
-DcheckModificationExcludeList=pom.xml -DpushChanges=false -Dtag=temp
git tag -d temp
git push --force

- name: Save Release files
if: always()
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/extension-release-published.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
deployToMavenCentral:
description: 'Specify it if you want to deploy to maven'
required: false
default: 'true'
default: true
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was failing @sayaliM0412
image

type: boolean
secrets:
SONATYPE_USERNAME:
Expand All @@ -28,7 +28,7 @@ on:

jobs:
maven-release:
uses: liquibase/build-logic/.github/workflows/extension-release-prepare.yml@v0.7.8
uses: liquibase/build-logic/.github/workflows/extension-release-prepare.yml@main
if: inputs.deployToMavenCentral == true
secrets: inherit
with:
Expand Down