add 6 cheats #395
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Repack widescreen hacks | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- '**.cht' | |
jobs: | |
check-binaries: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
# - name: Install dependencies | |
# run: | | |
# apk add git zip | |
- name: Get short SHA | |
id: slug | |
run: echo "::set-output name=chtcount::$(find CHT -name "*.cht" | wc -l)" | |
- name: append credits to all cheats | |
run: | | |
chmod +x ./Append.sh | |
./Append.sh "# Deploy Information: Hash:${{ steps.slug.outputs.sha8 }}, runner_id:${{ github.run_number }}" | |
- name: Make Changelog | |
run: | | |
git --no-pager log --name-only --oneline --pretty=format:"%n---------- commit %h by %an: [%s]%n -- Changed files are:">FULL_CHANGELOG.TXT | |
git --no-pager log --since="7 days ago" --date=human --pretty=format:"- %h %as %<(18)%an: %s">PARTIAL_CHANGELOG.TXT | |
echo FULL_CHANGELOG----------------------- | |
cat FULL_CHANGELOG.TXT | |
echo PARTIAL_CHANGELOG-------------------- | |
cat PARTIAL_CHANGELOG.TXT | |
- name: zip cheats | |
run: | | |
zip widescreen_hacks CHT/* | |
- name: create release body | |
run: | | |
echo "- __cheats count:__ _${{ steps.slug.outputs.chtcount }}_">week_changes.log | |
echo "- [__List of supported games__](https://github.com/PS2-Widescreen/OPL-Widescreen-Cheats/blob/main/cheat_list.MD)">>week_changes.log | |
echo "![GitHub release (latest by date)](https://img.shields.io/github/downloads/PS2-Widescreen/OPL-Widescreen-Cheats/Latest/total?label=Downloads)">>week_changes.log | |
echo last week changes:>>week_changes.log | |
git --no-pager log --since="7 days ago" --date=human --pretty=format:"- %h %as %<(18)%an: %s">>week_changes.log | |
cat week_changes.log | |
# - name: Upload artifacts | |
# if: ${{ success() }} | |
# uses: actions/upload-artifact@v2 | |
# with: | |
# name: WIDESCREEN | |
# path: | | |
# widescreen_hacks*.zip | |
- name: delete previous tag/release | |
if: (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main') | |
uses: dev-drprasad/[email protected] | |
with: | |
delete_release: true | |
tag_name: Latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Deploy release | |
uses: softprops/[email protected] | |
if: (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main') | |
with: | |
token: "${{ secrets.GITHUB_TOKEN }}" | |
fail_on_unmatched_files: true | |
name: "Latest Package" | |
tag_name: "Latest" | |
body_path: 'week_changes.log' | |
prerelease: false | |
files: | | |
widescreen_hacks*.zip | |
FULL_CHANGELOG.TXT | |
PARTIAL_CHANGELOG.TXT |