Skip to content

Commit

Permalink
Update workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
Crystal-Spider committed Jun 26, 2024
1 parent bd7f76e commit 26ee071
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,41 @@ name: Release Workflow

on:
workflow_dispatch:
inputs:
inputs:
version:
type: string
description: Version number
required: true
required: true
disable_checks:
type: boolean
description: Disable version consistency checks
default: false

jobs:
call-version-validation-workflow:
permissions:
contents: read
uses: crystal-nest/.github/.github/workflows/version_validation.yml@main
with:
version: ${{ github.event.inputs.version }}
disable_checks: ${{ github.event.inputs.disable_checks }}
secrets: inherit
call-analyze-workflow:
needs: call-version-validation-workflow
permissions:
contents: read
uses: crystal-nest/.github/.github/workflows/analyze.yml@main
secrets: inherit
call-version-update-workflow:
needs: call-analyze-workflow
needs: [call-version-validation-workflow, call-analyze-workflow]
permissions:
contents: write
uses: crystal-nest/.github/.github/workflows/version_update.yml@main
with:
version: ${{ github.event.inputs.version }}
secrets: inherit
call-release-workflow:
needs: [call-analyze-workflow, call-version-update-workflow]
needs: [call-version-validation-workflow, call-analyze-workflow, call-version-update-workflow]
permissions:
contents: write
packages: write
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/single_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,13 @@ on:
default: false

jobs:
call-workflow:
call-analyze-workflow:
uses: crystal-nest/.github/.github/workflows/analyze.yml@main
permissions:
contents: read
secrets: inherit
call-release-workflow:
needs: call-analyze-workflow
permissions:
contents: write
packages: write
Expand Down

0 comments on commit 26ee071

Please sign in to comment.