chore(deps): update test-room-7/action-update-file action to v1.8.0 (#6) #4
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: Merge to Main | |
on: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
# If merged into main, then handle any image promotions | |
release: | |
name: Action release | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Backing up Changelog | |
run: | | |
mv CHANGELOG.md OLD.CHANGELOG.md | |
touch CHANGELOG.md | |
- name: Conventional Changelog Update | |
uses: TriPSs/conventional-changelog-action@v4 | |
id: changelog | |
with: | |
github-token: ${{ github.token }} | |
output-file: 'CHANGELOG.md' | |
skip-version-file: 'true' | |
skip-commit: 'true' | |
git-push: 'false' | |
- name: Merging Changelog | |
if: ${{ !steps.changelog.outputs.skipped }} | |
run: | | |
mv CHANGELOG.md RELEASE.md | |
cat RELEASE.md OLD.CHANGELOG.md > CHANGELOG.md | |
- name: Update resources | |
uses: test-room-7/action-update-file@v1.8.0 | |
if: ${{ !steps.changelog.outputs.skipped }} | |
with: | |
file-path: CHANGELOG.md | |
commit-msg: "doc: updating changelog" | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create Release | |
uses: softprops/action-gh-release@v1 | |
if: ${{ !steps.changelog.outputs.skipped }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
tag_name: ${{ steps.changelog.outputs.tag }} | |
name: ${{ steps.changelog.outputs.tag }} | |
body: ${{ steps.changelog.outputs.clean_changelog }} |