Skip to content

Commit

Permalink
adjust release workflow validate logic for legacy-branch
Browse files Browse the repository at this point in the history
Signed-off-by: Min Jin <minkimzz@amazon.com>
  • Loading branch information
yue9944882 committed Feb 7, 2024
1 parent daf8515 commit ac4b773
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:
- name: Validate Input
run: |
echo "${{ github.ref_type }}" | perl -ne 'die unless m/^branch$/'
echo "${{ github.ref_name }}" | perl -ne 'die unless m/^release-\d+$/'
echo "${{ github.event.inputs.releaseVersion }}" | perl -ne 'die unless m/^\d+\.\d+\.\d+$/'
echo "${{ github.event.inputs.nextDevelopmentVersion }}" | perl -ne 'die unless m/^\d+\.\d+\.\d+-SNAPSHOT$/'
echo "${{ github.ref_name }}" | perl -ne 'die unless m/^release-legacy-\d+$/'
echo "${{ github.event.inputs.releaseVersion }}" | perl -ne 'die unless m/^\d+\.\d+\.\d+-legacy$/'
echo "${{ github.event.inputs.nextDevelopmentVersion }}" | perl -ne 'die unless m/^\d+\.\d+\.\d+-legacy-SNAPSHOT$/'
- name: Checkout
uses: actions/checkout@v4
- name: Check Actor
Expand Down

0 comments on commit ac4b773

Please sign in to comment.