Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
rabilrbl committed Aug 23, 2024
2 parents 2c4f94d + 6df6b2d commit 63ca098
Showing 1 changed file with 0 additions and 43 deletions.
43 changes: 0 additions & 43 deletions .github/workflows/test_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,8 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read
pull-requests: write
repository-projects: write

jobs:
init:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Comment Build started
run: |
gh pr comment "$PR_URL" -b "Build started for this PR. [Check logs](${{ github.event.repository.html_url }}/actions/runs/${{ github.run_id }})"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build:
needs: init
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -63,27 +44,3 @@ jobs:
with:
name: jiotv_go-${{ matrix.goos }}-${{ matrix.goarch }}
path: ./bin/

post_success:
runs-on: ubuntu-latest
needs: build
if: success()
steps:
- name: Comment Build success
run: |
gh pr comment "$PR_URL" --edit-last -b "Build success for this PR ✅. [Download artifacts](${{ github.event.repository.html_url }}/actions/runs/${{ github.run_id }})"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

post_failure:
runs-on: ubuntu-latest
needs: build
if: failure()
steps:
- name: Comment Build failed
run: |
gh pr comment "$PR_URL" --edit-last -b "Build failed for this PR ❌. [Check logs](${{ github.event.repository.html_url }}/actions/runs/${{ github.run_id }})"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 63ca098

Please sign in to comment.