Skip to content

Commit

Permalink
try a whole different type of changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
erikng committed May 26, 2022
1 parent 7d3eb1f commit e50e186
Show file tree
Hide file tree
Showing 5 changed files with 182 additions and 137 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build_nudge_prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@ jobs:
echo "NUDGE_VERSION=$(/bin/cat ./build_info.txt)" >> $GITHUB_ENV
echo "NUDGE_MAIN_VERSION=$(/bin/cat ./build_info_main.txt)" >> $GITHUB_ENV
- name: get environment variable changelog # trick to get this to work for sed command
id: get_env_var_changelog
run: |
echo "NUDGE_CHANGELOG=$(/bin/cat ./CHANGELOG.md | awk "/v${{env.NUDGE_MAIN_VERSION}}/,EOF")" >> $GITHUB_ENV
- name: Get Changelog Entry
id: changelog_reader
uses: mindsers/changelog-reader-action@e1a36842bddbd512340f882735802de843998e1f # v2.0.0
with:
validation_depth: 100
version: ${{ env.NUDGE_MAIN_VERSION }}

- name: Generate changelog
id: changelog
Expand Down Expand Up @@ -79,7 +81,7 @@ jobs:
If you would like to reduce the amount of times Nudge launches per day, it is recommended to create your own LaunchAgent.
# Changelog
${{env.NUDGE_CHANGELOG}}
${{ steps.changelog_reader.outputs.changes }}
# Changes
${{ steps.changelog.outputs.changelog }}
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/build_nudge_prerelease_manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,12 @@ jobs:
echo "NUDGE_VERSION=$(/bin/cat ./build_info.txt)" >> $GITHUB_ENV
echo "NUDGE_MAIN_VERSION=$(/bin/cat ./build_info_main.txt)" >> $GITHUB_ENV
- name: get environment variable changelog # trick to get this to work for sed command
id: get_env_var_changelog
run: |
echo "NUDGE_CHANGELOG=$(/bin/cat ./CHANGELOG.md | awk "/v${{env.NUDGE_MAIN_VERSION}}/,EOF")" >> $GITHUB_ENV
- name: Get Changelog Entry
id: changelog_reader
uses: mindsers/changelog-reader-action@e1a36842bddbd512340f882735802de843998e1f # v2.0.0
with:
validation_depth: 100
version: ${{ env.NUDGE_MAIN_VERSION }}

- name: Generate changelog
id: changelog
Expand Down Expand Up @@ -71,7 +73,7 @@ jobs:
If you would like to reduce the amount of times Nudge launches per day, it is recommended to create your own LaunchAgent.
# Changelog
${{env.NUDGE_CHANGELOG}}
${{ steps.changelog_reader.outputs.changes }}
# Changes
${{ steps.changelog.outputs.changelog }}
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/build_nudge_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@ jobs:
echo "NUDGE_VERSION=$(/bin/cat ./build_info.txt)" >> $GITHUB_ENV
echo "NUDGE_MAIN_VERSION=$(/bin/cat ./build_info_main.txt)" >> $GITHUB_ENV
- name: get environment variable changelog # trick to get this to work for sed command
id: get_env_var_changelog
run: |
echo "NUDGE_CHANGELOG=$(/bin/cat ./CHANGELOG.md | awk "/v${{env.NUDGE_MAIN_VERSION}}/,EOF")" >> $GITHUB_ENV
- name: Get Changelog Entry
id: changelog_reader
uses: mindsers/changelog-reader-action@e1a36842bddbd512340f882735802de843998e1f # v2.0.0
with:
validation_depth: 100
version: ${{ env.NUDGE_MAIN_VERSION }}

- name: Generate changelog
id: changelog
Expand Down Expand Up @@ -79,7 +81,7 @@ jobs:
If you would like to reduce the amount of times Nudge launches per day, it is recommended to create your own LaunchAgent.
# Changelog
${{env.NUDGE_CHANGELOG}}
${{ steps.changelog_reader.outputs.changes }}
# Changes
${{ steps.changelog.outputs.changelog }}
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/build_nudge_release_manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,12 @@ jobs:
echo "NUDGE_VERSION=$(/bin/cat ./build_info.txt)" >> $GITHUB_ENV
echo "NUDGE_MAIN_VERSION=$(/bin/cat ./build_info_main.txt)" >> $GITHUB_ENV
- name: get environment variable changelog # trick to get this to work for sed command
id: get_env_var_changelog
run: |
echo "NUDGE_CHANGELOG=$(/bin/cat ./CHANGELOG.md | awk "/v${{env.NUDGE_MAIN_VERSION}}/,EOF")" >> $GITHUB_ENV
- name: Get Changelog Entry
id: changelog_reader
uses: mindsers/changelog-reader-action@e1a36842bddbd512340f882735802de843998e1f # v2.0.0
with:
validation_depth: 100
version: ${{ env.NUDGE_MAIN_VERSION }}

- name: Generate changelog
id: changelog
Expand Down Expand Up @@ -71,7 +73,7 @@ jobs:
If you would like to reduce the amount of times Nudge launches per day, it is recommended to create your own LaunchAgent.
# Changelog
${{env.NUDGE_CHANGELOG}}
${{ steps.changelog_reader.outputs.changes }}
# Changes
${{ steps.changelog.outputs.changelog }}
Expand Down
Loading

0 comments on commit e50e186

Please sign in to comment.