aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorPiotr Wójcik <chocimier@tlen.pl>2021-06-29 17:58:45 +0000
committerPiotr <chocimier@tlen.pl>2021-06-30 19:09:10 +0000
commit4fc5144f8e49dc28e7fbb554a657303bc8670b35 (patch)
tree4982cf509e19834bf6b4896842267f193d0ee7c7 /.github/workflows
parent399a844150225388f96d20013d8e0223c95a9ebd (diff)
downloadvoid-packages-4fc5144f8e49dc28e7fbb554a657303bc8670b35.tar
void-packages-4fc5144f8e49dc28e7fbb554a657303bc8670b35.tar.gz
void-packages-4fc5144f8e49dc28e7fbb554a657303bc8670b35.tar.bz2
void-packages-4fc5144f8e49dc28e7fbb554a657303bc8670b35.tar.lz
void-packages-4fc5144f8e49dc28e7fbb554a657303bc8670b35.tar.xz
void-packages-4fc5144f8e49dc28e7fbb554a657303bc8670b35.tar.zst
void-packages-4fc5144f8e49dc28e7fbb554a657303bc8670b35.zip
.github/workflows: open issue when cycle is detected
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/cron.yml15
1 files changed, 13 insertions, 2 deletions
diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml
index c284857efcb..1b53808a758 100644
--- a/.github/workflows/cron.yml
+++ b/.github/workflows/cron.yml
@@ -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 }}