diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index be7dc9a..ee0bc82 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,9 +40,9 @@ 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 @@ -50,5 +50,16 @@ jobs: - 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 }}