Skip to content

Commit

Permalink
chore: update build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
envil a.k.a pow committed Feb 19, 2024
1 parent b9fa782 commit 4e2beb5
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/build-openseries-web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,27 @@ jobs:
exit 1
fi
comment:
needs: build
runs-on: ubuntu-latest
if: always()
steps:
- name: Comment on Pull Request
env:
GH_TOKEN: ${{ secrets.WF_TOKEN }}
PR: ${{ github.event.pull_request.html_url }}
run: |
LAST_COMMIT_SHA="${{ github.event.pull_request.head.sha }}"
if [[ ${{ job.status }} == 'success' ]]; then
BUILD_STATUS="Berhasil🩵"
LABEL="ready to review"
SUCCESS_MESSAGE="Mohon untuk menunggu para Maintainer mereview kodemu🎉!"
REMOVAL_LABEL="invalid"
if [[ ${{ job.status.build }} == 'success' ]]; then
BUILD_STATUS="Berhasil🩵"
LABEL="ready to review"
SUCCESS_MESSAGE="Mohon untuk menunggu para Maintainer mereview kodemu🎉!"
REMOVAL_LABEL="invalid"
else
BUILD_STATUS="Gagal💔"
LABEL="invalid"
SUCCESS_MESSAGE="Sepertinya ada kesalahan dalam kode yang menyebabkan kegagalan build. Coba jalankan `bun run build` di localmu. Silahkan perbaiki terlebih dahulu😼!"
REMOVAL_LABEL="ready to review"
BUILD_STATUS="Gagal💔"
LABEL="invalid"
SUCCESS_MESSAGE="Sepertinya ada kesalahan dalam kode yang menyebabkan kegagalan build. Coba jalankan `bun run build` di localmu. Silahkan perbaiki terlebih dahulu😼!"
REMOVAL_LABEL="ready to review"
fi
COMMENT_BODY=$(cat <<EOF
## Building Website OpenSeries😍
Expand Down

0 comments on commit 4e2beb5

Please sign in to comment.