Update Dockerfile #29
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: "Changelog" | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'apps/**' | |
- 'packages/**' | |
pull_request: | |
paths: | |
- 'apps/**' | |
- 'packages/**' | |
permissions: | |
contents: write | |
packages: write | |
pull-requests: write | |
jobs: | |
changelog: | |
name: Changelog | |
if: github.event_name != 'pull_request' | |
runs-on: ubuntu-24.04 | |
outputs: | |
skipped: ${{ steps.changelog.outputs.skipped }} | |
tag: ${{ steps.changelog.outputs.tag }} | |
clean_changelog: ${{ steps.changelog.outputs.clean_changelog }} | |
version: ${{ steps.changelog.outputs.version }} | |
env: | |
PR_BRANCH: release-ci-${{ github.run_id }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Create Branch | |
run: | | |
git checkout -b ${{ env.PR_BRANCH }} || git checkout ${{ env.PR_BRANCH }} | |
- name: Create Changelog | |
uses: TriPSs/conventional-changelog-action@v6 | |
id: changelog | |
with: | |
github-token: ${{ github.token }} | |
git-user-name: "github-actions[bot]" | |
git-user-email: "github-actions[bot]@users.noreply.github.com" | |
git-branch: ${{ env.PR_BRANCH }} | |
skip-git-pull: true | |
output-file: CHANGELOG.md | |
create-summary: true | |
- name: Create Changelog PR | |
if: steps.changelog.outputs.skipped == 'false' | |
run: | | |
gh pr create --base main --head ${{ env.PR_BRANCH }} --title 'chore(release): ${{ steps.changelog.outputs.tag }} [skip-ci]' --body "${{ steps.changelog.outputs.clean_changelog }}" | |
env: | |
GH_TOKEN: ${{ github.token }} | |
- name: Approve Changelog PR | |
if: steps.changelog.outputs.skipped == 'false' | |
run: | | |
gh pr review --approve ${{ env.PR_BRANCH }} | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN_ANDREJ }} | |
- name: Merge Changelog PR | |
if: steps.changelog.outputs.skipped == 'false' | |
run: | | |
gh pr merge --squash --auto --delete-branch ${{ env.PR_BRANCH }} | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN_ANDREJ }} | |
release: | |
name: Release | |
needs: changelog | |
if: github.event_name != 'pull_request' && needs.changelog.outputs.skipped == 'false' | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Create Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
token: ${{ secrets.GH_TOKEN_ANDREJ }} | |
tag_name: ${{ needs.changelog.outputs.tag }} | |
prerelease: false | |
draft: false | |
files: bin/* | |
generate_release_notes: true | |
name: ${{ needs.changelog.outputs.tag }} | |
body: | | |
<details> | |
<summary>🤖 Autogenerated Conventional Changelog</summary> | |
${{ needs.changelog.outputs.clean_changelog }} | |
</details> |