This repository has been archived by the owner on Jun 7, 2024. It is now read-only.
Wacky git hijinks #43
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: Generate Release Notes | |
on: | |
push: | |
branches: | |
- "**" | |
jobs: | |
package: | |
name: Generate Release Notes | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Source | |
uses: actions/checkout@v3 | |
with: | |
ref: 'source' | |
- name: Read Version | |
run: | | |
VER=$(cat VERSION) | |
echo "VERSION=$VER" >> $GITHUB_ENV | |
- name: Get Changelog Entry | |
id: changelog_reader | |
uses: mindsers/[email protected] | |
with: | |
validation_level: warn | |
version: ${{ env.VERSION }} | |
path: ./docs/CHANGELOG.md | |
- name: Checkout APT Repo | |
uses: actions/checkout@v3 | |
with: | |
ref: 'main' | |
- name: Generate LATEST_RELEASE | |
run: | | |
echo "${{ steps.changelog_reader.outputs.changes }}" > LATEST_RELEASE | |
- name: Push Changes | |
run: | | |
git config --global user.name "github-actions[bot]" | |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config pull.rebase false | |
git pull | |
git add -A | |
git commit -m "[AUTO] Update LATEST_RELEASE for ${{ env.VERSION }}" | |
git push --force |