File tree 1 file changed +40
-0
lines changed
1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Sync AppMan Version with AM
2
+ concurrency :
3
+ group : build-${{ github.ref }}
4
+ cancel-in-progress : true
5
+
6
+ on :
7
+ schedule :
8
+ - cron : " 5 8/8 * * 0-6"
9
+ workflow_dispatch :
10
+
11
+ jobs :
12
+ release :
13
+ permissions : write-all
14
+ runs-on : ubuntu-latest
15
+
16
+ steps :
17
+
18
+ - name : Get Date
19
+ run : |
20
+ AM_TAG="$(curl -Ls https://api.github.com/repos/ivan-hc/AM/releases/latest | jq '.' | grep "tag_name" | tr '" ' '\n' | grep [0-9])"
21
+ APPMAN_TAG=$(curl -Ls https://api.github.com/repos/ivan-hc/AppMan/releases/latest | jq '.' | grep "tag_name" | tr '" ' '\n' | grep [0-9])
22
+ if [ "$AM_TAG" != "$APPMAN_TAG" ]; then
23
+ echo NEW_TAG="${AM_TAG}" >> "${GITHUB_ENV}"
24
+ echo "See https://github.com/ivan-hc/AM/releases/tag/${AM_TAG}" > release-note.txt
25
+ else
26
+ echo NEW_TAG="${APPMAN_TAG}" >> "${GITHUB_ENV}"
27
+ echo "See https://github.com/ivan-hc/AM/releases/tag/${APPMAN_TAG}" > release-note.txt
28
+ fi
29
+ continue-on-error : false
30
+ - name : Snapshot Releaser
31
+ uses : softprops/action-gh-release@v2
32
+ with :
33
+ name : " AppMan ${{ env.NEW_TAG}}"
34
+ tag_name : " ${{ env.NEW_TAG}}"
35
+ prerelease : false
36
+ draft : false
37
+ generate_release_notes : false
38
+ body_path : release-note.txt
39
+ make_latest : true
40
+ continue-on-error : false
You can’t perform that action at this time.
0 commit comments