Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cuong-tran committed Sep 22, 2024
1 parent 3b87529 commit af29fa7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
build-app:
runs-on: ubuntu-latest
needs: prepare-build
if: startsWith(github.ref, 'refs/tags') && github.repository == 'komikku-app/komikku'
if: startsWith(github.ref, 'refs/tags')
steps:
- name: Clone Repository (${{ needs.prepare-build.outputs.TAG_NAME }})
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ jobs:
build-app:
runs-on: ubuntu-latest
needs: prepare-build
if: github.ref == 'refs/heads/master' && github.repository == 'komikku-app/komikku'
if: github.ref == 'refs/heads/master'
steps:
- name: Clone Repository (${{ needs.prepare-build.outputs.VERSION_TAG }} - ${{ needs.prepare-build.outputs.TAG_NAME }})
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0
repository: 'komikku-app/komikku-source'
ssh-key: '${{ secrets.KOMIKKU_DEPLOY }}'

- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4
Expand Down Expand Up @@ -84,7 +86,7 @@ jobs:
echo "COMMIT_LOGS<<{delimiter}
$(curl -H "Accept: application/vnd.github.v3+json" \
"https://api.github.com/repos/komikku-app/komikku/compare/${{ steps.previous_commit.outputs.PREV_RELEASE_SHA }}...${{ steps.current_commit.outputs.CURRENT_SHA }}" \
"https://api.github.com/repos/komikku-app/komikku-source/compare/${{ steps.previous_commit.outputs.PREV_RELEASE_SHA }}...${{ steps.current_commit.outputs.CURRENT_SHA }}" \
| jq '[.commits[]|{message:(.commit.message | split("\n")), username:.author.login}]' \
| jq -r '.[]|"- \(.message | first) (@\(.username))"')
{delimiter}" >> $GITHUB_OUTPUT
Expand All @@ -93,12 +95,14 @@ jobs:
name: Build release app
runs-on: ubuntu-latest
needs: prepare-build
if: startsWith(github.ref, 'refs/tags/v') && github.repository == 'komikku-app/komikku'
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Clone Repository (${{ needs.prepare-build.outputs.VERSION_TAG }})
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0
repository: 'komikku-app/komikku-source'
ssh-key: '${{ secrets.KOMIKKU_DEPLOY }}'

- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4
Expand Down Expand Up @@ -203,7 +207,7 @@ jobs:
#### Based on
**Full Changelog**: https://github.com/komikku-app/komikku/compare/${{ needs.prepare-build.outputs.PREV_TAG_NAME }}...${{ needs.prepare-build.outputs.VERSION_TAG }}
**Full Changelog**: https://github.com/komikku-app/komikku-source/compare/${{ needs.prepare-build.outputs.PREV_TAG_NAME }}...${{ needs.prepare-build.outputs.VERSION_TAG }}
${{ needs.prepare-build.outputs.COMMIT_LOGS }}
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/codeberg_mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:

jobs:
codeberg:
if: github.repository == 'komikku-app/komikku'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
Expand Down

0 comments on commit af29fa7

Please sign in to comment.