Skip to content

Commit

Permalink
fix env pack vars
Browse files Browse the repository at this point in the history
  • Loading branch information
David Hock committed Nov 16, 2024
1 parent 21cd488 commit 1f40d4f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- main
- releases/*
create:
branches:
- releases/*
tags:
- releases/*

Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
branches:
- releases/*
create:
branches:
- releases/*
tags:
- releases/*

Expand All @@ -19,8 +21,8 @@ jobs:
run: |
BRANCH_NAME="${GITHUB_REF#refs/heads/}"
if [[ "$BRANCH_NAME" =~ releases/([^/]+)/(.+) ]]; then
echo "Package=${BASH_REMATCH[1]}" >> $GITHUB_ENV
echo "Version=${BASH_REMATCH[2]}" >> $GITHUB_ENV
echo "PACKAGE=${BASH_REMATCH[1]}" >> $GITHUB_ENV
echo "VERSION=${BASH_REMATCH[2]}" >> $GITHUB_ENV
else
echo "Branch name does not match the required pattern 'releases/{Package}/{Version}'"
exit 1
Expand Down

0 comments on commit 1f40d4f

Please sign in to comment.