Skip to content

Commit 2084495

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

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

.github/workflows/CI.yml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,19 @@ 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/delete-tag-and-release@v0.3.1
103+
with:
104+
delete_release: true
105+
tag_name: latest
106+
env:
107+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
108+
96109
- name: Create release
97110
if: github.ref == 'refs/heads/main'
98111
uses: softprops/action-gh-release@v2
@@ -104,8 +117,9 @@ jobs:
104117
files: |
105118
PS2BBL.7z
106119
body: |
107-
"![dl](https://img.shields.io/github/downloads/israpps/PlayStation2-Basic-BootLoader/latest/total?style=for-the-badge&logo=github) "
120+
![dl](https://img.shields.io/github/downloads/israpps/PlayStation2-Basic-BootLoader/latest/total?style=for-the-badge&logo=github)
108121
[![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/)
122+
${{ env.CHANGELOG }}
109123
110124
- name: notify on discord
111125
if: github.ref == 'refs/heads/main'
@@ -177,6 +191,19 @@ jobs:
177191
path: |
178192
release/PS2BBL_OpenTuna_Installer.ELF
179193
194+
# - name: last week changelog
195+
# run: |
196+
# git --no-pager log --pretty=format:"- %h:%as %>(18)%an: %s" --since="Last Week">CHANGELOG
197+
# echo CHANGELOG=$(cat CHANGELOG) >> $GITHUB_ENV
198+
# echo ${{ env.CHANGELOG }}
199+
200+
- uses: ClementTsang/delete-tag-and-release@v0.3.1
201+
with:
202+
delete_release: true
203+
tag_name: opentuna
204+
env:
205+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
206+
180207
- name: Create release
181208
if: github.ref == 'refs/heads/main'
182209
uses: softprops/action-gh-release@v2
@@ -190,3 +217,4 @@ jobs:
190217
body: |
191218
![dl](https://img.shields.io/github/downloads/israpps/PlayStation2-Basic-BootLoader/latest/total?style=for-the-badge&logo=github)
192219
[![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/)
220+
${{ env.CHANGELOG }}

0 commit comments

Comments
 (0)