Skip to content

Commit

Permalink
chore(extension-attach-artifact-release.yml): remove release-prepare …
Browse files Browse the repository at this point in the history
…job as it is no longer needed

chore(extension-release-prepare.yml): remove pushChanges input as it is no longer needed
chore(extension-release-published.yml): remove pushChanges input from release-prepare-push job as it is no longer needed
  • Loading branch information
jandroav committed Aug 2, 2023
1 parent 52abda5 commit bac8aeb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 17 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/extension-attach-artifact-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ on:

jobs:

release-prepare:
uses: liquibase/build-logic/.github/workflows/extension-release-prepare.yml@v0.3.5
with:
pushChanges: "false"
secrets: inherit

attach-to-release:
name: Attach Artifact to Release
if: github.event.pull_request.merged == true
Expand All @@ -45,14 +39,14 @@ jobs:
chmod +x $PWD/.github/sign_artifact.sh
chmod +x $PWD/.github/upload_asset.sh
- name: Build release artifacts
id: build-release-artifacts
run: mvn -B release:clean release:prepare -Dusername=liquibot -Dpassword=$GITHUB_TOKEN -Darguments="-Dmaven.javadoc.skip=true -Dmaven.test.skipTests=true -Dmaven.test.skip=true -Dmaven.deploy.skip=true" -DreleaseVersion=${{ github.event.inputs.liquibaseVersion }} -DpushChanges=false

- name: Get Artifact ID
id: get-artifact-id
run: echo "artifact_id=$(mvn help:evaluate -Dexpression=project.artifactId -q -DforceStdout)" >> $GITHUB_ENV

- name: Build release artifacts
id: build-release-artifacts
run: mvn clean install -DskipTests

- name: Get Release Tag
id: get-release-tag
run: echo "release_tag=$(./.github/get_draft_release.sh TAG)" >> $GITHUB_ENV
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/extension-release-prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ name: Prepare release

on:
workflow_call:
inputs:
pushChanges:
required: true
type: string

jobs:
prepare-release:
Expand All @@ -31,7 +27,7 @@ jobs:
- name: Prepare Maven Release
run: |
mvn -B release:clean release:prepare -Dusername=liquibot -Dpassword=$GITHUB_TOKEN -Darguments="-Dmaven.javadoc.skip=true -Dmaven.test.skipTests=true -Dmaven.test.skip=true -Dmaven.deploy.skip=true" -DreleaseVersion=${{ github.event.inputs.liquibaseVersion }} -DpushChanges=${{ inputs.pushChanges }}
mvn -B release:clean release:prepare -Dusername=liquibot -Dpassword=$GITHUB_TOKEN -Darguments="-Dmaven.javadoc.skip=true -Dmaven.test.skipTests=true -Dmaven.test.skip=true -Dmaven.deploy.skip=true" -DreleaseVersion=${{ github.event.inputs.liquibaseVersion }}
- name: Save Release files
uses: actions/upload-artifact@v3
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/extension-release-published.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ jobs:

release-prepare-push:
uses: liquibase/build-logic/.github/workflows/extension-release-prepare.yml@v0.3.5
with:
pushChanges: "true"
secrets: inherit

release:
Expand Down

0 comments on commit bac8aeb

Please sign in to comment.