From 555433b3e1e65b4d79d4925b2be15b4e300cce81 Mon Sep 17 00:00:00 2001 From: Sayali Mohadikar <76010603+sayaliM0412@users.noreply.github.com> Date: Wed, 31 Jul 2024 11:31:38 -0500 Subject: [PATCH] Update release-published.yml (#13) * Update release-published.yml * use main instead of pinning to a version * add authorize step * Delete .github/workflows/release-published.yml --------- Co-authored-by: Sayali M --- .github/workflows/release-published.yml | 11 ----------- .github/workflows/test.yml | 7 +++++++ 2 files changed, 7 insertions(+), 11 deletions(-) delete mode 100644 .github/workflows/release-published.yml diff --git a/.github/workflows/release-published.yml b/.github/workflows/release-published.yml deleted file mode 100644 index e3f90a0..0000000 --- a/.github/workflows/release-published.yml +++ /dev/null @@ -1,11 +0,0 @@ -name: Release Extension to Sonatype - -on: - workflow_dispatch: - release: - types: [published] - -jobs: - release: - uses: liquibase/build-logic/.github/workflows/extension-release-published.yml@v0.7.8 - secrets: inherit \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 47b7265..21c654c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,6 +9,13 @@ on: - synchronize jobs: + authorize: + environment: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository && 'external' || 'internal' }} + runs-on: ubuntu-latest + steps: + - run: true + build-test: + needs: authorize uses: liquibase/build-logic/.github/workflows/pro-extension-test.yml@v0.7.8 secrets: inherit \ No newline at end of file