Skip to content

Commit

Permalink
validate VERSION-TAG.env
Browse files Browse the repository at this point in the history
  • Loading branch information
bbatist-ban committed Feb 27, 2024
1 parent dc71086 commit 3646581
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/template-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,14 @@ jobs:
- name: release
run: npx -p @semantic-release/changelog -p @semantic-release/exec semantic-release

- name: Set variables From VERSION-TAG.env
#testing
- name: Check for file VERSION-TAG.env
run: |
VER=$(cat VERSION-TAG.env)
echo "$VER"
echo "RELEASE_VERSION=$VER" >> $GITHUB_ENV
ls -l
echo "VERSION-TAG.env: |${{ hashFiles('VERSION-TAG.env') }}|"
echo "VERSION-TAG.env2: |${{ hashFiles('VERSION-TAG.env2') }}|"
echo "FILE_VERSION_TAG_EXISTS=true" >> $GITHUB_ENV
- name: Validate conditions
if: ${{ env.DEBUG_MODE == 'true' }}
run: |
Expand All @@ -67,6 +69,14 @@ jobs:
echo "GITHUB_API_URL=${{ env.GITHUB_API_URL }}"
echo "COMMIT_PUSH=${{ env.COMMIT_PUSH }}"
echo "DEBUG_MODE=${{ env.DEBUG_MODE }}"
echo "FILE_VERSION_TAG_EXISTS=${{ env.FILE_VERSION_TAG_EXISTS }}"
- name: Set variables From VERSION-TAG.env
if: ${{ env.FILE_VERSION_TAG_EXISTS == 'true' }}
run: |
VER=$(cat VERSION-TAG.env)
echo "$VER"
echo "RELEASE_VERSION=$VER" >> $GITHUB_ENV
- name: Install Mix dependencies
if: ${{ ( env.PUBLISH_ARTIFACT == 'true' ) && ( env.RELEASE_VERSION != '' ) }}
Expand Down

0 comments on commit 3646581

Please sign in to comment.