ci: minor refactor

This commit is contained in:
Zane Schepke 2024-12-25 23:19:31 -05:00
parent c8298297e2
commit 66051e4a0a
2 changed files with 6 additions and 6 deletions

View File

@ -1,11 +1,11 @@
name: ci-android name: on-pr
on: on:
workflow_dispatch: workflow_dispatch:
pull_request: pull_request:
jobs: jobs:
format: format_check:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4

View File

@ -1,4 +1,4 @@
name: release-android name: publish
on: on:
schedule: schedule:
@ -64,7 +64,7 @@ jobs:
build_type: ${{ inputs.release_type == '' && 'nightly' || inputs.release_type }} build_type: ${{ inputs.release_type == '' && 'nightly' || inputs.release_type }}
publish: publish:
needs: needs:
- check_commits - check_commits
- build - build
if: ${{ needs.check_commits.outputs.has_new_commits > 0 && inputs.release_type != 'none' }} if: ${{ needs.check_commits.outputs.has_new_commits > 0 && inputs.release_type != 'none' }}
@ -130,7 +130,7 @@ jobs:
- name: Make download dir - name: Make download dir
run: mkdir ${{ github.workspace }}/temp run: mkdir ${{ github.workspace }}/temp
- name: Download artifacts - name: Download artifacts
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
@ -204,7 +204,7 @@ jobs:
token: ${{ secrets.ANDROID_PAT }} token: ${{ secrets.ANDROID_PAT }}
repository: zaneschepke/fdroid repository: zaneschepke/fdroid
event-type: fdroid-update event-type: fdroid-update
publish-play: publish-play:
if: ${{ inputs.track != 'none' && inputs.track != '' }} if: ${{ inputs.track != 'none' && inputs.track != '' }}
name: Publish to Google Play name: Publish to Google Play