-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dont deploy a tag if no tag was created
- Loading branch information
Showing
1 changed file
with
3 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,7 @@ jobs: | |
with: | ||
ref: ${{ github.sha }} | ||
- name: Restore Cache | ||
if: ${{ steps.tag.outputs.tag }} | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
|
@@ -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 |