Skip to content

Commit

Permalink
[CI]: changelog workaround and tag cleanup?
Browse files Browse the repository at this point in the history
  • Loading branch information
israpps committed Oct 16, 2024
1 parent b249ae6 commit 9cb8516
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,20 @@ jobs:
path: |
release/*
# - name: last week changelog
# run: |
# git --no-pager log --pretty=format:"- %h:%as %>(18)%an: %s" --since="Last Week">CHANGELOG
# echo CHANGELOG=$(cat CHANGELOG) >> $GITHUB_ENV
# echo ${{ env.CHANGELOG }}

- uses: ClementTsang/[email protected]
if: github.ref == 'refs/heads/main'
with:
delete_release: true
tag_name: latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create release
if: github.ref == 'refs/heads/main'
uses: softprops/action-gh-release@v2
Expand All @@ -104,8 +118,9 @@ jobs:
files: |
PS2BBL.7z
body: |
"![dl](https://img.shields.io/github/downloads/israpps/PlayStation2-Basic-BootLoader/latest/total?style=for-the-badge&logo=github) "
![dl](https://img.shields.io/github/downloads/israpps/PlayStation2-Basic-BootLoader/latest/total?style=for-the-badge&logo=github)
[![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/)
${{ env.CHANGELOG }}
- name: notify on discord
if: github.ref == 'refs/heads/main'
Expand Down Expand Up @@ -177,6 +192,20 @@ jobs:
path: |
release/PS2BBL_OpenTuna_Installer.ELF
# - name: last week changelog
# run: |
# git --no-pager log --pretty=format:"- %h:%as %>(18)%an: %s" --since="Last Week">CHANGELOG
# echo CHANGELOG=$(cat CHANGELOG) >> $GITHUB_ENV
# echo ${{ env.CHANGELOG }}

- uses: ClementTsang/[email protected]
if: github.ref == 'refs/heads/main'
with:
delete_release: true
tag_name: opentuna
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create release
if: github.ref == 'refs/heads/main'
uses: softprops/action-gh-release@v2
Expand All @@ -190,3 +219,4 @@ jobs:
body: |
![dl](https://img.shields.io/github/downloads/israpps/PlayStation2-Basic-BootLoader/latest/total?style=for-the-badge&logo=github)
[![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/)
${{ env.CHANGELOG }}

0 comments on commit 9cb8516

Please sign in to comment.