diff options
author | thecalcaholic <6317548+theCalcaholic@users.noreply.github.com> | 2022-07-20 11:16:37 +0300 |
---|---|---|
committer | thecalcaholic <6317548+theCalcaholic@users.noreply.github.com> | 2022-07-20 11:16:37 +0300 |
commit | c77b0c45606094a5f23f5c20a8e40c6ed9ab757e (patch) | |
tree | 48a4057d18b7fd7eb137093f77176b7c0a0eb16c | |
parent | baae501f3c680d2ac99f27777d20ea320691f428 (diff) |
release.yml: Checkout repository before creating GH release
-rw-r--r-- | .github/workflows/release.yml | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bee0db6d..0d7ded88 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -90,6 +90,10 @@ jobs: run: shell: bash steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + ref: "${{ inputs.git_ref || github.head_ref || github.ref_name }}" - name: download images from artifact store uses: actions/download-artifact@v3 with: @@ -98,13 +102,13 @@ jobs: run: | mkdir -p release cd release - msg=() + checksums=() assets=() for asset in ../artifacts/*/*.tar.gz; do mv "$asset" ./ asset_name="$(basename "$asset")" - msg="$msg + checksums="$checksums \`\`\` $(md5sum "$asset_name") \`\`\`" @@ -112,7 +116,7 @@ jobs: done echo "Assets: ${assets[*]}" - echo "Message: ${msg[*]}" + echo "Message: ${checksums[*]}" - name: Publish if: ${{ github.event_name == 'push' && github.ref_type == 'tag' }} run: | @@ -122,5 +126,5 @@ jobs: [Changelog](https://github.com/nextcloud/nextcloudpi/blob/${{ env.VERSION }}/changelog.md) **Checksums:** - ${msg[*]} + ${checksums[*]} EOF |