Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Kampi authored and jakkra committed Jul 18, 2024
1 parent 27c1b5f commit eab1ea2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
production
if-no-files-found: ignore

- if: ${{ matrix.NewImage }}
- if: ${{ matrix.NewImage && (github.event.pull_request.merged == true) }}
name: Update image
run: |
git config --local user.name "github-actions[bot]"
Expand All @@ -80,4 +80,4 @@ jobs:
git commit -m "Add image from CI/CD action"
git remote set-url origin https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
echo https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git push origin ${{ steps.extract_branch.outputs.branch }}
git push origin ${{ github.base_ref }}

0 comments on commit eab1ea2

Please sign in to comment.