🚀 Create Release #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: Create Release | |
on: | |
workflow_dispatch: | |
jobs: | |
release-changelog: | |
name: Changelog & Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🛡️ Obtain GitOpsLover Installation Access Token | |
id: app_auth | |
run: | | |
TOKEN="$(npx obtain-github-app-installation-access-token ci ${{ secrets.GITOPSLOVER_APP_TOKEN }})" | |
echo "::add-mask::$TOKEN" | |
echo "::set-output name=token::$TOKEN" | |
- name: 📥 Checkout the code | |
uses: actions/checkout@v4 | |
- name: Update Changelog | |
id: changelog | |
uses: TriPSs/[email protected] | |
with: | |
github-token: ${{ steps.app_auth.outputs.token }} | |
version-file: './package.json,./package-lock.json' | |
git-user-name: 'gitopslover[bot]' | |
git-user-email: '160535767+gitopslover[bot]@users.noreply.github.com' | |
- name: Create release | |
uses: actions/[email protected] | |
if: ${{ steps.changelog.outputs.skipped == 'false' }} | |
env: | |
GITHUB_TOKEN: ${{ steps.app_auth.outputs.token }} | |
with: | |
tag_name: ${{ steps.changelog.outputs.tag }} | |
release_name: ${{ steps.changelog.outputs.tag }} | |
body: ${{ steps.changelog.outputs.clean_changelog }} |