Skip to content

Commit

Permalink
Update Github action
Browse files Browse the repository at this point in the history
  • Loading branch information
VaniHaripriya committed Oct 3, 2024
1 parent 52e2a81 commit cb66d69
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ci-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,24 @@ permissions:
jobs:
reset_ci_passed_label:
if: github.event_name == 'pull_request' && (github.event.action == 'synchronize' || github.event.action == 'reopened')
runs-on: ubuntu-latest
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Reset ci-passed label status on PR Syncronization
run: |
echo "Resetting 'ci-passed' label as new changes have been pushed."
gh pr edit ${{ github.event.pull_request.number }} --remove-label "ci-passed" --repo $GITHUB_REPOSITORY || echo "Label not present"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

check_ci_status:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Check if all CI checks passed
uses: wechuli/allcheckspassed@0b68b3b7d92e595bcbdea0c860d05605720cf479
with:
with:
GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }}
delay: '5'
retries: '7'
polling_interval: '5'
Expand Down

0 comments on commit cb66d69

Please sign in to comment.