forked from hetzneronline/community-content
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 943 Bytes
/
outdated-tutorials.yml
File metadata and controls
41 lines (34 loc) · 943 Bytes
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
33
34
35
36
37
38
39
40
41
name: Outdated Tutorials
on:
schedule:
- cron: "0 0 1 * *"
push:
branches: [master]
paths:
- .github/workflows/outdated-tutorials.yml
- .github/outdated-tutorials-summary.sh
pull_request:
branches: [master]
paths:
- .github/workflows/outdated-tutorials.yml
- .github/outdated-tutorials-summary.sh
jobs:
summary:
name: Summary
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Generate summary
run: |
.github/outdated-tutorials-summary.sh | tee summary.md $GITHUB_STEP_SUMMARY
- name: Create issue
if: github.event_name == 'schedule'
run: |
gh issue create \
--title "Tutorials written over a year ago ($(date +'%B %Y'))" \
--body-file summary.md
env:
GH_TOKEN: ${{ github.token }}