Skip to content

.github/workflows/check_github_issues.yaml #320

.github/workflows/check_github_issues.yaml

.github/workflows/check_github_issues.yaml #320

name: Check GitHub Issues
on:
workflow_dispatch:
# Each Monday at 9:00 AM
schedule:
- cron: "0 9 * * 1"
permissions:
contents: read
issues: read
# Using the bot-token here is necessary in order to let the GitHub CI access the internal
# repository, where issues are located
env:
ACTION_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
GH_TOKEN: ${{ secrets.BOT_TOKEN }}
concurrency:
# Add event_name in the group as workflow dispatch means we could run this in addition to other
# workflows already running on a PR or a merge e.g.
group: "${{ github.ref }}-${{ github.event_name }}-${{ github.workflow }}"
cancel-in-progress: true
jobs:
check-github-actions:
name: Check GitHub Issues
timeout-minutes: 5
# Using the regular Ubuntu 20.04 version recently started to raise related to grub-efi-amd64-signed
# More info : https://github.com/orgs/community/discussions/47863
runs-on: ubuntu-24.04
defaults:
run:
shell: bash
steps:
- name: Checkout Code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: 'false'
- name: Install dependencies
id: install-deps
run: |
sudo ./script/make_utils/setup_os_deps.sh
- name: Check GitHub actions
run: |
make check_issues
- name: Slack Notification
if: ${{ always() && !success() }}
continue-on-error: true
uses: rtCamp/action-slack-notify@e31e87e03dd19038e411e38ae27cbad084a90661
env:
SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }}
SLACK_ICON: https://pbs.twimg.com/profile_images/1274014582265298945/OjBKP9kn_400x400.png
SLACK_COLOR: ${{ job.status }}
SLACK_MESSAGE:
"Some 'FIXME: url' issues are present in the code base but closed on github \
(${{ env.ACTION_RUN_URL }})"
SLACK_USERNAME: ${{ secrets.BOT_USERNAME }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}