Skip to content

Commit

Permalink
fix: opt for simpler tileset updates changelog (CleverRaven#63571)
Browse files Browse the repository at this point in the history
my dinamic tileset changelog is a little broken, I can't quite get it to
work like I want to; just ehh have a static list of the tilesets hosted
at the two main repos under liks to the upstream release, they have nice
looking changelogs, good!

this sorta works as is, only you need someone with write permissions to
do a little editing; don't like - this instead

Co-authored-by: casswedson <casswedson@users.noreply.github.com>
  • Loading branch information
casswedson and casswedson authored Feb 18, 2023
1 parent bdd9cf7 commit fcbd86e
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions .github/workflows/update-tilesets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,6 @@ jobs:
if: github.repository == 'CleverRaven/Cataclysm-DDA'
runs-on: ubuntu-latest
steps:
- name: "Generate PR body/tileset update changelog"
id: pr-changelog
run: |
printf '#### Summary\nNone\n\nAutomatic tilesets updates from:\n\n#### https://github.com/I-am-Erk/CDDA-Tilesets\n' >> pr-body
gh release view -R I-am-Erk/CDDA-Tilesets --json body --jq .body >> pr-body
echo "---" >> pr-body
printf '#### https://github.com/pixel-32/CDDA-tileset\n' >> pr-body
gh release view -R pixel-32/CDDA-tileset --json body --jq .body >> pr-body
sed -i "s/## What's Changed/**What's Changed**/g" pr-body
sed -i "s/## New Contributors/**New Contributors**/g" pr-body
sed -i '/Full Changelog/d' pr-body
CHANGELOG=$(cat pr-body)
CHANGELOG="${CHANGELOG//'%'/'%25'}"
CHANGELOG="${CHANGELOG//$'\n'/'%0A'}"
CHANGELOG="${CHANGELOG//$'\r'/'%0D'}"
echo "pr-body=$CHANGELOG" >> $GITHUB_OUTPUT
rm -f pr-body
- uses: actions/checkout@v3
- name: "Get current date"
uses: 1466587594/get-current-time@v2
Expand Down Expand Up @@ -65,4 +45,4 @@ jobs:
delete-branch: true
base: master
title: Routine tileset updates on ${{ steps.current-date.outputs.formattedTime }}
body: ${{ steps.pr-changelog.outputs.pr-body }}
body: "#### Summary\nNone\nAutomatic tileset updates from:\n\n**https://github.com/I-am-Erk/CDDA-Tilesets/releases**\nAltica, BrownLikeBears, ChibiUltica, HollowMoon, Larwick_Overmap, MshockXotto+, NeoDaysTileset, RetroDaysTileset, SmashButton_iso, SurveyorsMap\n\n---\n\n**https://github.com/pixel-32/CDDA-tileset/releases**\nCuteclysm"

0 comments on commit fcbd86e

Please sign in to comment.