forked from Netflix/conductor
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jozef Volak
committed
Feb 6, 2024
1 parent
f300173
commit 946bd9a
Showing
1 changed file
with
4 additions
and
5 deletions.
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 |
---|---|---|
|
@@ -51,7 +51,7 @@ jobs: | |
#### Docker latest publish #### | ||
|
||
# - name: Push latest image | ||
# if: startsWith(github.ref, 'refs/tags/master') | ||
# if: startsWith(github.ref, 'refs/heads/master') | ||
# run: docker push $IMAGE_NAME:latest | ||
|
||
#### Docker release publish #### | ||
|
@@ -85,7 +85,7 @@ jobs: | |
fetch-depth: 2 | ||
|
||
- name: Commit swagger latest | ||
if: startsWith(github.ref, 'refs/tags/swagger_publish') | ||
if: startsWith(github.ref, 'refs/heads/swagger_publish') | ||
run: | | ||
git_hash=$(git rev-parse --short "$GITHUB_SHA") | ||
git_branch=${GITHUB_REF#refs/heads/} | ||
|
@@ -95,7 +95,7 @@ jobs: | |
git config --global user.email "[email protected]" | ||
git config --global user.name "FRINXrepo" | ||
git add latest.json | ||
git commit -am "Updated swagger for ${git_branch}/${git_hash}" | ||
(git commit -am "Updated swagger for ${git_branch}/${git_hash}" && git push) || echo "Nothing to commit" | ||
git push | ||
popd | ||
|
@@ -111,6 +111,5 @@ jobs: | |
git config --global user.email "[email protected]" | ||
git config --global user.name "FRINXrepo" | ||
git add production.json v${{ steps.get_version.outputs.VERSION }}.json | ||
git commit -am "Updated swagger for ${git_branch}/${git_hash}" | ||
git push | ||
(git commit -am "Updated swagger for ${git_branch}/${git_hash}" && git push) || echo "Nothing to commit" | ||
popd |