From 4634c22a768ee7274006a48e3afb930fb3a7009c Mon Sep 17 00:00:00 2001 From: Max Baumann Date: Thu, 2 Nov 2023 22:11:01 +0100 Subject: [PATCH] fighting with the ci --- .github/workflows/ci.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 41cdc72e..64815f27 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,16 +62,17 @@ jobs: retention-days: 1 release: needs: build - if: github.event_name == 'push' + if: github.event_name != 'pull_request' runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Get CHANGELOG + - name: Get CHANGELOGA + id: changelog run: | echo "RELEASE_BODY< /tmp/bttv && head -n25 CHANGELOG.md >> /tmp/bttv && echo "EOF" >> /tmp/bttv && - cat /tmp/bttv >> $GITHUB_ENV + cat /tmp/bttv >> $GITHUB_OUTPUT - uses: actions/download-artifact@v2 with: name: bttv-apk @@ -83,10 +84,11 @@ jobs: with: tag_name: ${{ github.ref }} release_name: Release ${{ github.ref }} - body: ${{ env.RELEASE_BODY }} + body: ${{ steps.changelog.outputs.RELEASE_BODY }} draft: true prerelease: false - - run: echo "version_tag=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV + - id: version_tag + run: echo "version_tag=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT - name: upload Release Apk id: upload-release-asset uses: actions/upload-release-asset@v1 @@ -95,5 +97,5 @@ jobs: with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./bttv.apk - asset_name: bttv-${{ env.version_tag }}.apk + asset_name: bttv-${{ steps.version_tag.outputs.version_tag }}.apk asset_content_type: application/vnd.android.package-archive