Skip to content

Commit

Permalink
Merge pull request #42 from VeyronSakai/ci/release
Browse files Browse the repository at this point in the history
Fix release workflow
  • Loading branch information
VeyronSakai authored Apr 27, 2024
2 parents 9756d2d + 7eea967 commit 88f5d74
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ env:
GITHUB_BOT_NAME: github-actions[bot]
GITHUB_BOT_EMAIL: github-actions[bot]@users.noreply.github.com

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

jobs:
paths-filter:
name: Paths Filter
Expand All @@ -41,6 +37,9 @@ jobs:
name: Update Draft
if: ${{ (github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'main') || github.event_name == 'workflow_dispatch'}}
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
outputs:
tag_name: ${{ steps.release-drafter.outputs.tag_name }}
steps:
Expand All @@ -54,6 +53,9 @@ jobs:
needs: update-draft
if: ${{ github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
env:
VERSION: ${{ needs.update-draft.outputs.tag_name }}
SOURCE_BRANCH: github-actions/update-files/${{ github.run_number }}
Expand Down Expand Up @@ -86,9 +88,6 @@ jobs:
message: "Update README.md"
add: "README.md"
new_branch: ${{ env.SOURCE_BRANCH }}
- uses: actions/setup-dotnet@v4
with:
dotnet-version: "7.0.x"
- name: Create pull request and merge
if: ${{ steps.commit-package-json.outputs.committed == 'true' || steps.commit-readme.outputs.committed == 'true'}}
env:
Expand All @@ -102,6 +101,9 @@ jobs:
needs: [update-draft, paths-filter]
environment: Release
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'main' && github.event.pull_request.merged && needs.paths-filter.outputs.package_json == 'true' }}
env:
VERSION: ${{ needs.update-draft.outputs.tag_name }}
Expand Down

0 comments on commit 88f5d74

Please sign in to comment.