From edcb23b11f6221ee0dd2a1864850ff9542a77f86 Mon Sep 17 00:00:00 2001 From: Lorena Rangel Date: Fri, 2 Jul 2021 17:03:46 +0200 Subject: [PATCH] Add dry run workflow to test release Signed-off-by: Lorena Rangel --- .github/workflows/cli-release.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cli-release.yaml b/.github/workflows/cli-release.yaml index 1bfd480c5..4df63e519 100644 --- a/.github/workflows/cli-release.yaml +++ b/.github/workflows/cli-release.yaml @@ -1,11 +1,17 @@ name: Releaser on: - push: - tags: - - "v1*" + workflow_dispatch: + inputs: + tag: + description: 'Release Tag' + required: true + dry-run: + description: 'Dry run' + required: false + default: 'true' jobs: - upload-release: + release: runs-on: ubuntu-latest steps: - name: Set up Go 1.16 @@ -36,7 +42,9 @@ jobs: run: cp packaging/* bin/ - uses: ncipollo/release-action@v1 + if: ${{ github.event.inputs.dry-run != 'true' }} with: artifacts: "bin/*" prerelease: true token: ${{ secrets.GITHUB_TOKEN }} + tag: ${{ github.event.inputs.tag }}