Skip to content

Commit

Permalink
CI: Leave reminder to update broken-features (#6723)
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Jun 2, 2023
1 parent 9ceba7d commit e346be8
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
name: actionlint

on:
push:
paths:
- .github/workflows/*.yml
pull_request:
paths:
- .github/workflows/*.yml
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/hotfixes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Hotfix

on:
issues:
types:
- closed

jobs:
reminder:
name: Reminder
runs-on: ubuntu-latest

steps:
- name: Fetch CSV file
run: |
curl -o broken-features.csv https://raw.githubusercontent.com/refined-github/yolo/main/broken-features.csv
cat broken-features.csv
- name: Was it hotfixed?
run: |
if grep -q ",${{ github.event.issue.number }}," broken-features.csv; then
TODAY="$(npx utc-version --short)"
echo "WAS_HOTFIXED=$TODAY" >> "$GITHUB_ENV"
fi
- name: Leave comment
if: env.WAS_HOTFIXED
uses: peter-evans/create-or-update-comment@v3
with:
issue-number: ${{ github.event.issue.number }}
body: |
To maintainers: Disable the hotfix by adding `${{env.WAS_HOTFIXED}}` to https://github.com/refined-github/yolo/edit/main/broken-features.csv

0 comments on commit e346be8

Please sign in to comment.