Skip to content

Commit

Permalink
ci: use reusable workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rcwbr committed Oct 23, 2024
1 parent aaa6490 commit d5f414b
Showing 1 changed file with 7 additions and 32 deletions.
39 changes: 7 additions & 32 deletions .github/workflows/push-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,37 +43,12 @@ jobs:
env:
REGISTRY: ghcr.io/rcwbr/
IMAGE_NAME: release-it-docker-conventional-changelog
release-it-dry-run:
name: Release-it dry-run
runs-on: ubuntu-24.04
steps:
-
name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
-
name: Release-it
uses: rcwbr/release-it-action/conventional-changelog-action@1-define-initial-action
with:
release-it-extra-args: --changelog
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release-it:
name: Release-it
runs-on: ubuntu-24.04
release-it-workflow:
# uses: rcwbr/release-it-gh-workflow.github/workflows/[email protected] TODO use released ref
uses: rcwbr/release-it-gh-workflow.github/workflows/release-it-workflow.yaml@1-define-initial-workflow
permissions:
contents: write
# Run full release process for pushes to main
if: ${{ github.ref == 'refs/heads/main' }}
steps:
-
name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
-
name: Release-it
uses: rcwbr/release-it-action/conventional-changelog-action@1-define-initial-action
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# app-id: 1033419 # release-it-docker CI release-it app
# app-environment: Repo release
# app-secret-name: RELEASE_IT_GITHUB_APP_KEY # Secret belonging to the Repo release environment

0 comments on commit d5f414b

Please sign in to comment.