Skip to content

Commit 9d4421b

Browse files
committed
Put repo name sanitization in own step.
1 parent 91e7519 commit 9d4421b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ jobs:
6464
run: echo "VERSION=${{inputs.branch}}-nightly" >> $GITHUB_ENV
6565
- name: Set version
6666
if: inputs.nightly == false
67-
run: |
68-
echo "VERSION=${{inputs.branch}}" >> $GITHUB_ENV
67+
run: echo "VERSION=${{inputs.branch}}" >> $GITHUB_ENV
68+
- name: Sanitize repo for container image names
6969
REPO=`echo "${{github.repository}}" | tr '[:upper:]' '[:lower:]'`
7070
echo "REPO=$REPO" >> $GITHUB_ENV
7171
- name: show version
@@ -75,7 +75,7 @@ jobs:
7575
- name: Create GitHub Release
7676
id: create_release
7777
# Allow testing withing creating a release
78-
if: github.event_name != 'pull_request'
78+
if: github.event_name != 'pull_request' && github.event.ref == 'refs/heads/develop'
7979
uses: softprops/action-gh-release@v2.1.0
8080
with:
8181
files: cwms-data-api/build/libs/cwms-data-api-${{env.VERSION}}.war

0 commit comments

Comments
 (0)