Skip to content

Commit

Permalink
Clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
northword authored Aug 12, 2024
1 parent 292d6f6 commit 70bc7f4
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ on:
branches:
- main
schedule:
- cron: "0 0 * * *" # Run at midnight UTC daily
workflow_dispatch: # Allow manual trigger of the workflow
- cron: "0 0 * * *"
workflow_dispatch:

jobs:
check:
name: Check if rebuild is required
runs-on: ubuntu-latest
outputs:
commit_hash: ${{ steps.get-latest-commit.outputs.short_commit }}
Expand Down Expand Up @@ -43,6 +44,7 @@ jobs:
echo "$latest_commit" > ./last_commit
build:
name: Build the APP
needs:
- check
if: ${{ needs.check.outputs.need_build == 'true' }}
Expand Down Expand Up @@ -105,6 +107,7 @@ jobs:
path: app/build/outputs

release:
name: Upload the dist to GitHub release
needs:
- check
- build
Expand All @@ -130,13 +133,6 @@ jobs:
echo ${{ needs.check.outputs.commit_hash }}
mv app/build/outputs/apk/dev/debug/app-dev-debug.apk app/build/outputs/apk/dev/debug/app-dev-debug-${{ steps.metadata.outputs.value }}-${{ needs.check.outputs.commit_hash }}.apk
# - uses: joutvhu/get-release@v1
# id: latest_release
# with:
# latest: true
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create release
# if: ${{ steps.metadata.outputs.elements[0].versionName != steps.latest_release.outputs.tag_name }}
uses: ncipollo/release-action@v1
Expand Down

0 comments on commit 70bc7f4

Please sign in to comment.