File tree Expand file tree Collapse file tree 2 files changed +57
-0
lines changed Expand file tree Collapse file tree 2 files changed +57
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Main
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ tags :
7
+ - ' v*'
8
+ pull_request :
9
+ branches :
10
+ - main
11
+ repository_dispatch :
12
+ types : [ periodic ]
13
+ workflow_dispatch :
14
+
15
+ jobs :
16
+ release :
17
+ runs-on : ubuntu-22.04
18
+ steps :
19
+ - name : Check out the sources
20
+ uses : actions/checkout@v3
21
+
22
+ - name : Prepare the release notes
23
+ uses : ForNeVeR/ChangelogAutomation.action@v1
24
+ with :
25
+ input : ./CHANGELOG.md
26
+ output : ./release-notes.md
27
+ format : Markdown
28
+ - name : Upload the release notes
29
+ uses : actions/upload-artifact@v4
30
+ with :
31
+ name : release-notes
32
+ path : ./release-notes.md
33
+
34
+ - name : Create the release
35
+ if : startsWith(github.ref, 'refs/tags/v')
36
+ id : release
37
+ # noinspection SpellCheckingInspection
38
+ uses : softprops/action-gh-release@v1
39
+ with :
40
+ body_path : ./release-notes.md
Original file line number Diff line number Diff line change
1
+ name : Periodic Trigger
2
+ on :
3
+ schedule :
4
+ - cron : ' 0 0 * * 0' # Every Sunday
5
+
6
+ jobs :
7
+ main :
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - name : Trigger main workflow
11
+ env :
12
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
13
+ EVENT : periodic
14
+ ORG : ForNeVeR
15
+ REPO : andivionian-status-classifier
16
+ run : |
17
+ curl -d "{\"event_type\": \"${EVENT}\"}" -H "Content-Type: application/json" -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.everest-preview+json" "https://api.github.com/repos/${ORG}/${REPO}/dispatches"
You can’t perform that action at this time.
0 commit comments