From e82405263dd18df798fee9dde6d9b79a47651ff7 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Wed, 7 Feb 2024 16:47:46 +0100 Subject: [PATCH] fix(workflow): retrieve branch for release --- .github/workflows/release.yml | 2 +- .github/workflows/test-release.yml | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test-release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6d1836e..0bf2a6e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: main + ref: ${{ github.event.release.target_commitish }} - uses: actions/setup-java@v3 with: java-version: '17' diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml new file mode 100644 index 0000000..562af9a --- /dev/null +++ b/.github/workflows/test-release.yml @@ -0,0 +1,20 @@ +name: Deploy Package + +on: + release: + types: [edited] + +jobs: + deploy: + runs-on: ubuntu-latest + permissions: + contents: write + packages: write + steps: + - name: Info + run: | + echo "Launch info $${{ github.event.inputs }}" + echo "Release version: ${{ github.event.inputs.releaseVersion }}, Development version: ${{ github.event.inputs.developmentVersion }}" + - uses: actions/checkout@v4 + with: + ref: ${{ github.event.release.target_commitish }} \ No newline at end of file