Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Move changelog generation to build workflow #157

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -551,3 +551,32 @@ jobs:
ROLLBAR_ACCESS_TOKEN: ${{ secrets.CLOUD_ROLLBAR_ACCESS_TOKEN }}
ROLLBAR_USERNAME: ${{ github.actor }}
DEPLOY_ID: ${{ steps.rollbar_pre_deploy.outputs.deploy_id }}


generate_changelog:
needs: [check_changes, publish-cli, publish-node, publish-react, publish-dotnet, publish-go]
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate a changelog
uses: orhun/git-cliff-action@v3
with:
config: cliff.toml
args: --verbose
env:
OUTPUT: CHANGELOG.md
GITHUB_REPO: ${{ github.repository }}
- name: Commit changelog
uses: EndBug/add-and-commit@v9
with:
add: 'CHANGELOG.md'
message: '[skip ci] chore: Update changelog'
default_author: github_actions
push: true
github_token: ${{ secrets.GITHUB_TOKEN }}
36 changes: 0 additions & 36 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,42 +44,6 @@ jobs:
bootstrap:
- 'bootstrap*/**'

generate_changelog:
needs: [check_changes, publish-cli, publish-node, publish-react, publish-dotnet, publish-go, create-archives]
runs-on: ubuntu-latest
if: |
always() && (
needs.check_changes.outputs.sdk_node == 'true' ||
needs.check_changes.outputs.sdk_react == 'true' ||
needs.check_changes.outputs.sdk_dotnet == 'true' ||
needs.check_changes.outputs.sdk_go == 'true' ||
needs.check_changes.outputs.cli == 'true' ||
needs.check_changes.outputs.bootstrap == 'true'
)
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate a changelog
uses: orhun/git-cliff-action@v3
with:
config: cliff.toml
args: --verbose
env:
OUTPUT: CHANGELOG.md
GITHUB_REPO: ${{ github.repository }}
- name: Commit changelog
uses: EndBug/add-and-commit@v9
with:
add: 'CHANGELOG.md'
message: '[skip ci] chore: Update changelog'
default_author: github_actions
push: true
github_token: ${{ secrets.GITHUB_TOKEN }}

publish-cli:
needs: check_changes
runs-on: ubuntu-latest
Expand Down
Loading