Skip to content

Commit

Permalink
workflow call
Browse files Browse the repository at this point in the history
  • Loading branch information
jitu5 committed Mar 29, 2024
1 parent 8aa026f commit edf0480
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/check-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,25 @@ jobs:
draft: false
prerelease: false
token: ${{ secrets.GH_TAGGING_TOKEN }}

# release:
# needs: [check-version, test-kedro-viz, prepare-release]
# if: |
# !contains(needs.*.result, 'failure') &&
# !contains(needs.*.result, 'cancelled') &&
# needs.check-version.outputs.new_release == 'true'
# uses: ./.github/workflows/release.yml

release:
needs: [check-version, test-kedro-viz, prepare-release]
runs-on: ubuntu-latest
steps:
- name: Check tag format
run: echo "${{ github.ref }}" | grep -q -E '^refs/tags/v[0-9]+\.[0-9]+\.[0-9]+$'
shell: bash
- name: Run release
if: |
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled') &&
needs.check-version.outputs.new_release == 'true'
uses: ./.github/workflows/release.yml
6 changes: 1 addition & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: Release
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
branches-ignore:
- '**'
workflow_call:
workflow_dispatch:
env:
AWS_REGION: xxxxst-2
Expand Down

0 comments on commit edf0480

Please sign in to comment.