Skip to content

Commit

Permalink
ci: pass major.minor on schedule build only
Browse files Browse the repository at this point in the history
(cherry picked from commit a43d917)
  • Loading branch information
JoshuaLicense committed Jul 2, 2024
1 parent 95a49b9 commit d8a0a84
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
outputs:
tag_name: ${{ steps.release.outputs.tag_name }}
release_created: ${{ steps.release.outputs.release_created }}
major: ${{ steps.release.outputs.major }}
minor: ${{ steps.release.outputs.minor }}
steps:
- uses: googleapis/release-please-action@v4
id: release
Expand Down Expand Up @@ -78,7 +80,7 @@ jobs:
- base: ${{ github.event_name == 'schedule' || needs.release-please.outputs.release_created || contains(needs.orchestrator.outputs.changed-directories, 'php/8.3/cli') && 'ignored' || 'php/8.3/cli' }}
uses: ./.github/workflows/docker.yaml
with:
image-version: ${{ (needs.release-please.outputs.release_created || github.event_name == 'schedule') && needs.release-please.outputs.tag_name || github.sha }}
image-version: ${{ github.event_name == 'schedule' && format('{0}.{1}', needs.release-please.outputs.major, needs.release-please.outputs.minor) || (needs.release-please.outputs.release_created && needs.release-please.outputs.tag_name || github.sha) }}
dockerfile-directory: ${{ matrix.base }}
repository: ${{ matrix.base }}
push: true
Expand Down

0 comments on commit d8a0a84

Please sign in to comment.