Skip to content

Commit

Permalink
ci: add release needs jobs
Browse files Browse the repository at this point in the history
Signed-off-by: msclock <[email protected]>
  • Loading branch information
msclock committed Oct 12, 2023
1 parent daf3487 commit 8ebebcb
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
push:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:

pre-commit:
Expand Down Expand Up @@ -37,6 +41,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write # write for semantic-release
needs: [pre-commit]

steps:
- name: Checkout
Expand Down Expand Up @@ -75,9 +80,3 @@ jobs:
conventional-changelog-conventionalcommits
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# - name: Push updates to branch for major version
# if: steps.semantic.outputs.new_release_published == 'true'
# run: git push https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:refs/heads/v${{steps.semantic.outputs.new_release_major_version}}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8ebebcb

Please sign in to comment.