fix ci removing old nightly

This commit is contained in:
Zane Schepke 2024-07-30 23:44:02 -04:00
parent a02bc0c87f
commit 30d2ad417d
1 changed files with 7 additions and 8 deletions

View File

@ -130,6 +130,12 @@ jobs:
repository: zaneschepke/fdroid repository: zaneschepke/fdroid
event-type: fdroid-update event-type: fdroid-update
# Setup TAG_NAME, which is used as a general "name"
- if: github.event_name == 'workflow_dispatch'
run: echo "TAG_NAME=${{ github.event.inputs.tag_name }}" >> $GITHUB_ENV
- if: github.event_name == 'schedule'
run: echo "TAG_NAME=nightly" >> $GITHUB_ENV
- name: Set version release notes - name: Set version release notes
if: ${{ inputs.release_type == 'release' }} if: ${{ inputs.release_type == 'release' }}
run: | run: |
@ -148,19 +154,12 @@ jobs:
if: ${{ inputs.release_type == 'prerelease' }} if: ${{ inputs.release_type == 'prerelease' }}
run: | run: |
echo "RELEASE_NOTES=Testing version of app for specific feature." >> $GITHUB_ENV echo "RELEASE_NOTES=Testing version of app for specific feature." >> $GITHUB_ENV
gh release delete ${{ github.event.inputs.tag_name }} --yes || true gh release delete ${{ github.event.inputs.tag_name }} --yes || true
# Setup TAG_NAME, which is used as a general "name"
- if: github.event_name == 'workflow_dispatch'
run: echo "TAG_NAME=${{ github.event.inputs.tag_name }}" >> $GITHUB_ENV
- if: github.event_name == 'schedule'
run: echo "TAG_NAME=nightly" >> $GITHUB_ENV
- name: Get checksum - name: Get checksum
id: checksum id: checksum
run: echo "checksum=$(apksigner verify -print-certs ${{ env.APK_PATH }} | grep -Po "(?<=SHA-256 digest:) .*" | tr -d "[:blank:]")" >> $GITHUB_OUTPUT run: echo "checksum=$(apksigner verify -print-certs ${{ env.APK_PATH }} | grep -Po "(?<=SHA-256 digest:) .*" | tr -d "[:blank:]")" >> $GITHUB_OUTPUT
- name: Create Release with Fastlane changelog notes - name: Create Release with Fastlane changelog notes
id: create_release id: create_release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2