diff --git a/.github/workflows/tf-release.yml b/.github/workflows/tf-release.yml index 8879613..a6fb576 100644 --- a/.github/workflows/tf-release.yml +++ b/.github/workflows/tf-release.yml @@ -5,7 +5,12 @@ name: Release on: - workflow_dispatch: {} + workflow_dispatch: + inputs: + dryRun: + type: boolean + description: "Dry-Run" + default: false concurrency: # only run one publishing at a time to avoid conflicts @@ -13,8 +18,12 @@ concurrency: jobs: publish: + # Only on main repository (don't release on forks) + if: github.repository_owner == 'wetransform-os' + uses: wetransform/gha-workflows/.github/workflows/gradle-library-publish.yml@9264b26e1baa46d2ef3c860cd479bfae76ee12a3 # v2.5.1 with: + semantic-release-dryrun: ${{ inputs.dryRun }} java-version: 17 multi-module: false semantic-release: true