Skip to content

Commit

Permalink
Move workflow call to another job
Browse files Browse the repository at this point in the history
  • Loading branch information
chelnak committed May 8, 2022
1 parent 5d1d6fe commit 743e89d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
workflow_dispatch:
workflow_call:

permissions:
contents: write
pull-requests: write

jobs:
changelog:
name: changelog
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ env:
GO_VERSION: 1.18

jobs:
changelog:
permissions:
contents: write
pull-requests: write

name: Generate changelog
uses: ./.github/workflows/changelog.yml

release:
name: release
runs-on: ubuntu-latest
Expand All @@ -29,9 +37,6 @@ jobs:
with:
go-version: ${{ env.GO_VERSION }}

- name: Generate changelog
uses: ./.github/workflows/changelog.yml

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
Expand Down

0 comments on commit 743e89d

Please sign in to comment.