Skip to content

Commit

Permalink
ci(release): remove trigger on PRs from workflow (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
samikachai authored Dec 12, 2024
1 parent 46ad06d commit 18057f6
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: release
on:
push:
tags: ["v[0-9].[0-9]+.[0-9]+"]
pull_request:
branches: "*"

permissions:
contents: write
Expand Down Expand Up @@ -51,14 +49,13 @@ jobs:
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git checkout $BRANCH_NAME
git checkout main
git add CHANGELOG.md
git commit -m "chore: update changelog for $BRANCH_NAME"
git push origin $BRANCH_NAME
git commit -m "chore: update changelog for main branch"
git push origin main
- name: Create GitHub Release
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
Expand Down

0 comments on commit 18057f6

Please sign in to comment.