Skip to content

Commit 9cb8516

Browse files
committed
[CI]: changelog workaround and tag cleanup?
1 parent b249ae6 commit 9cb8516

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

.github/workflows/CI.yml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,20 @@ jobs:
9393
path: |
9494
release/*
9595
96+
# - name: last week changelog
97+
# run: |
98+
# git --no-pager log --pretty=format:"- %h:%as %>(18)%an: %s" --since="Last Week">CHANGELOG
99+
# echo CHANGELOG=$(cat CHANGELOG) >> $GITHUB_ENV
100+
# echo ${{ env.CHANGELOG }}
101+
102+
- uses: ClementTsang/[email protected]
103+
if: github.ref == 'refs/heads/main'
104+
with:
105+
delete_release: true
106+
tag_name: latest
107+
env:
108+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
109+
96110
- name: Create release
97111
if: github.ref == 'refs/heads/main'
98112
uses: softprops/action-gh-release@v2
@@ -104,8 +118,9 @@ jobs:
104118
files: |
105119
PS2BBL.7z
106120
body: |
107-
"![dl](https://img.shields.io/github/downloads/israpps/PlayStation2-Basic-BootLoader/latest/total?style=for-the-badge&logo=github) "
121+
![dl](https://img.shields.io/github/downloads/israpps/PlayStation2-Basic-BootLoader/latest/total?style=for-the-badge&logo=github)
108122
[![info](https://img.shields.io/badge/not%20sure%20what%20to%20download%3F-Click%20Here-000000?style=for-the-badge&logo=github)](https://israpps.github.io/PlayStation2-Basic-BootLoader/Downloads/)
123+
${{ env.CHANGELOG }}
109124
110125
- name: notify on discord
111126
if: github.ref == 'refs/heads/main'
@@ -177,6 +192,20 @@ jobs:
177192
path: |
178193
release/PS2BBL_OpenTuna_Installer.ELF
179194
195+
# - name: last week changelog
196+
# run: |
197+
# git --no-pager log --pretty=format:"- %h:%as %>(18)%an: %s" --since="Last Week">CHANGELOG
198+
# echo CHANGELOG=$(cat CHANGELOG) >> $GITHUB_ENV
199+
# echo ${{ env.CHANGELOG }}
200+
201+
- uses: ClementTsang/[email protected]
202+
if: github.ref == 'refs/heads/main'
203+
with:
204+
delete_release: true
205+
tag_name: opentuna
206+
env:
207+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
208+
180209
- name: Create release
181210
if: github.ref == 'refs/heads/main'
182211
uses: softprops/action-gh-release@v2
@@ -190,3 +219,4 @@ jobs:
190219
body: |
191220
![dl](https://img.shields.io/github/downloads/israpps/PlayStation2-Basic-BootLoader/latest/total?style=for-the-badge&logo=github)
192221
[![info](https://img.shields.io/badge/not%20sure%20what%20to%20download%3F-Click%20Here-000000?style=for-the-badge&logo=github)](https://israpps.github.io/PlayStation2-Basic-BootLoader/Downloads/)
222+
${{ env.CHANGELOG }}

0 commit comments

Comments
 (0)