From 6c8005e1b21532244b14875cc17c7e1e12f4a174 Mon Sep 17 00:00:00 2001 From: Sebastian Stenzel Date: Mon, 3 Jul 2023 10:59:32 +0200 Subject: [PATCH] use `github.ref` instead of `inputs.ref` [ci skip] --- .github/workflows/debian.yml | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/.github/workflows/debian.yml b/.github/workflows/debian.yml index bd353a434..adec8b2c5 100644 --- a/.github/workflows/debian.yml +++ b/.github/workflows/debian.yml @@ -3,9 +3,6 @@ name: Build Debian Package on: workflow_dispatch: inputs: - ref: - description: 'GitHub Ref (e.g. refs/tags/1.6.16)' - required: true semver: description: 'SemVer String (e.g. 1.7.0-beta1)' required: true @@ -29,9 +26,6 @@ jobs: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v3 - with: - ref: ${{ inputs.ref }} - fetch-depth: 0 - id: versions name: Get version information run: | @@ -141,15 +135,10 @@ jobs: run: dput ppa:sebastian-stenzel/cryptomator-beta cryptomator_*_source.changes # If ref is a tag, also upload to GitHub Releases: - - name: Determine tag name - if: startsWith(inputs.ref, 'refs/tags/') - run: | - REF=${{ inputs.ref }} - echo "TAG_NAME=${REF##*/}" >> $GITHUB_ENV - name: Publish Debian package on GitHub Releases - if: startsWith(inputs.ref, 'refs/tags/') + if: startsWith(github.ref, 'refs/tags/') env: GITHUB_TOKEN: ${{ secrets.CRYPTOBOT_RELEASE_TOKEN }} run: | artifacts=$(ls | grep cryptomator*.deb) - gh release upload ${{ env.TAG_NAME }} $artifacts \ No newline at end of file + gh release upload ${{ github.ref_name }} $artifacts \ No newline at end of file