Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,21 @@ jobs:
- name: Generate and check project
run: cargo ${{ env.TOOLCHAIN }} xtask check ${{ matrix.chip }} ${{ fromJSON('["", "--all-combinations"]')[inputs.all_combinations || github.event_name == 'schedule'] }} ${{ fromJSON('["", "--build"]')[inputs.build || github.event_name == 'schedule'] }}

- if: ${{ github.event_name == 'schedule' && failure() }}
name: Create or Update GitHub Issue
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
sudo apt-get install gh -y
ISSUE_NAME=$(gh issue list --state open --search "Sheduled CI Failure in:title" --json number --jq '.[0].number')

if [[ -z "$ISSUE_NAME" ]];
then
gh issue create \
--title "Sheduled CI Failure" \
--body "Sheduled CI Workflow Failed! [View the failed job](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})." \
--label "all-combinations"
fi
# --------------------------------------------------------------------------
# Test

Expand Down
Loading