Skip to content

Commit

Permalink
Merge pull request #87 from LerianStudio/feature/remove-useless-workf…
Browse files Browse the repository at this point in the history
…low-steps

fix: improve steps to control the github actions workflow
  • Loading branch information
lfbarrile01 authored Dec 17, 2024
2 parents 4694f7b + b23314a commit fa16cf1
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ jobs:
release:
name: Create Release for Node.js Project
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop'
permissions:
contents: write
pull-requests: write
Expand Down Expand Up @@ -88,6 +87,12 @@ jobs:
GIT_AUTHOR_EMAIL: ${{ secrets.LERIAN_CI_CD_USER_EMAIL }}
GIT_COMMITTER_NAME: ${{ secrets.LERIAN_CI_CD_USER_NAME }}
GIT_COMMITTER_EMAIL: ${{ secrets.LERIAN_CI_CD_USER_EMAIL }}

- name: Fail if no tag is generated
if: ${{ steps.semantic_release.outputs.semantic_tag == '' }}
run: |
echo -e "\033[31mNo new version was generated. Stopping the pipeline.\033[0m"
exit 1
build_and_publish:
name: Build and Publish Docker Image
Expand Down Expand Up @@ -146,9 +151,3 @@ jobs:
file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}

- name: Debug and Logs for Issues
if: failure()
run: |
echo "Debugging failed step..."
cat $GITHUB_WORKSPACE/debug.log

0 comments on commit fa16cf1

Please sign in to comment.