-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
32 lines (27 loc) · 927 Bytes
/
hotfixes.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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