Skip to content

Commit

Permalink
Try to close control issue when build stops failing
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ferraz-oliveira committed Jun 28, 2024
1 parent 96a9137 commit 8dbaa39
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,26 @@ jobs:
-otp-${{steps.setup-beam.outputs.otp-version}}\
-rebar3-${{steps.setup-beam.outputs.rebar3-version}}"

- name: Continuous Integration
run: |
rebar3 as test ci
#- name: Continuous Integration
# run: |
# rebar3 as test ci

- name: Check if build left artifacts
run: git diff --exit-code

- name: Notify on failed build
uses: jayqi/failed-build-issue-action@v1.2.0
if: failure() && github.event.pull_request == null
id: failed-build
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Maybe close failure notification
run: |
#gh issue close ${{steps.failed-build.outputs.issue-number}}
if [[ -z "${{steps.failed-build.outputs.issue-number}}" ]];then
build_failed=$(gh search issues --label "build failed" --json "number")
echo "${build_failed}"
fi
env:
GH_TOKEN: ${{ github.token }}

0 comments on commit 8dbaa39

Please sign in to comment.