Skip to content

Commit a0b5928

Browse files
committed
[Misc]: 🔧 chore(ci): simplify precommit-publish workflow by removing nightly date tag generation
Signed-off-by: samzong <[email protected]>
1 parent 327d0f1 commit a0b5928

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

‎.github/workflows/precommit-publish.yml‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,11 @@ jobs:
3636
username: ${{ github.actor }}
3737
password: ${{ secrets.GITHUB_TOKEN }}
3838

39-
- name: Generate date tag for nightly builds
40-
id: date
41-
if: inputs.is_nightly == true
42-
run: echo "date_tag=$(date +'%Y%m%d')" >> $GITHUB_OUTPUT
43-
4439
- name: Build and push Docker image
4540
uses: docker/build-push-action@v5
4641
with:
4742
context: .
4843
file: ./Dockerfile.precommit
4944
platforms: linux/amd64,linux/arm64
5045
push: ${{ github.event_name != 'pull_request' }} # Only push on merge to main, not on PRs
51-
tags: |
52-
${{ inputs.is_nightly != true && format('ghcr.io/{0}/semantic-router/precommit:latest', env.REPOSITORY_OWNER_LOWER) || '' }}
46+
tags: ghcr.io/${{ env.REPOSITORY_OWNER_LOWER }}/semantic-router/precommit:latest

0 commit comments

Comments
 (0)