Skip to content

Commit

Permalink
Dont deploy a tag if no tag was created
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Oct 31, 2024
1 parent 7bd3dbb commit 66dd787
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
with:
ref: ${{ github.sha }}
- name: Restore Cache
if: ${{ steps.tag.outputs.tag }}
uses: actions/cache@v4
with:
path: |
Expand All @@ -58,11 +59,12 @@ jobs:
2.x-${{ hashFiles('blt/blt.yml') }}-${{ hashFiles('composer.json') }}-
2.x-${{ hashFiles('blt/blt.yml') }}-
- name: Deploy Tag
if: ${{ steps.tag.outputs.tag }}
run: |
git config --system --add safe.directory '*' &&
git config --global user.email "[email protected]" &&
git config --global user.name "Github Actions" &&
ssh-keyscan -t rsa svn-45197.prod.hosting.acquia.com >> /root/.ssh/known_hosts &&
composer install -n &&
blt blt:telemetry:disable --no-interaction &&
blt deploy --tag=$(date +'%Y-%m-%d')"_"${{ steps.tag.outputs.tag }} --commit-msg=${{ steps.tag.outputs.tag }} --no-interaction
blt deploy --tag=$(date +'%Y-%m-%d')"_"${{ steps.tag.outputs.tag }} --commit-msg=${{ steps.tag.outputs.tag }} --no-interaction

0 comments on commit 66dd787

Please sign in to comment.