Skip to content

Commit

Permalink
Separate main tag process from changelog generation process (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tchoupinax authored Dec 22, 2024
1 parent f2bea35 commit 858b6b1
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/main-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,4 @@ jobs:
with:
branch: main
commit_message: "docs: update CHANGELOG.md for ${{ github.ref_name }} [skip ci]"
file_pattern: CHANGELOG.md

- name: Update major tag to ${{ github.ref_name }}
uses: actions/publish-action@v0.3.0
with:
source-tag: ${{ github.ref_name }}
file_pattern: CHANGELOG.md
27 changes: 27 additions & 0 deletions .github/workflows/tag-update-major-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Update major tag
on:
push:
tags:
- "v*"

jobs:
create-changelog:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.DEPLOY_APP_ID }}
private-key: ${{ secrets.DEPLOY_APP_KEY }}

- uses: actions/checkout@v4
with:
token: ${{ steps.app-token.outputs.token }}

- name: Update major tag to ${{ github.ref_name }}
uses: actions/publish-action@v0.3.0
with:
source-tag: ${{ github.ref_name }}

0 comments on commit 858b6b1

Please sign in to comment.