.github/workflows: open issue when cycle is detected
This commit is contained in:
parent
399a844150
commit
4fc5144f8e
1 changed files with 13 additions and 2 deletions
15
.github/workflows/cron.yml
vendored
15
.github/workflows/cron.yml
vendored
|
@ -25,7 +25,7 @@ jobs:
|
|||
# Upgrade again (in case there was a xbps update)
|
||||
xbps-install -yu
|
||||
# Install script dependencies
|
||||
xbps-install -y python3-networkx
|
||||
xbps-install -y python3-networkx github-cli
|
||||
- uses: actions/checkout@v1
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
@ -34,4 +34,15 @@ jobs:
|
|||
ln -s "$(pwd)" /hostrepo &&
|
||||
common/travis/set_mirror.sh &&
|
||||
common/travis/prepare.sh
|
||||
- run: common/scripts/xbps-cycles.py
|
||||
- name: Find cycles and open issues
|
||||
run: |
|
||||
common/scripts/xbps-cycles.py | tee cycles
|
||||
grep 'Cycle:' cycles | while read -r line; do
|
||||
if gh issue list -R "$GITHUB_REPOSITORY" -S "$line" | grep .; then
|
||||
printf "Issue on '%s' already exists.\n" "$line"
|
||||
else
|
||||
gh issue create -R "$GITHUB_REPOSITORY" -b '' -t "$line"
|
||||
fi
|
||||
done
|
||||
env:
|
||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN }}
|
||||
|
|
Loading…
Reference in a new issue