Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit ba32f39

Browse files
authored
Fix workflow run issues (#74)
1 parent 78479f0 commit ba32f39

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/docker-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
description: 'The tag to build'
77
required: false
88
type: string
9+
default: 'main'
910
push:
1011
branches: [main]
1112
tags: ['v*']
@@ -15,7 +16,6 @@ jobs:
1516
name: Push Docker image to GitHub Packages
1617
runs-on: ubuntu-latest
1718
env:
18-
MSGRAPH_DOCKER_REGISTRY_URL: docker.pkg.github.com
1919
PACKAGE_VERSION: ${{github.event.inputs.tag || github.ref_name || 'v0.1.0'}}
2020
steps:
2121
- id: get-version
@@ -34,7 +34,7 @@ jobs:
3434
password: ${{ secrets.GITHUB_TOKEN }}
3535
registry: docker.pkg.github.com
3636
- name: Push to GitHub Packages - Nightly
37-
if: contains(github.ref, 'refs/head/main') && github.event.inputs.tag == ''
37+
if: github.ref == 'refs/head/main' || github.event.inputs.tag == 'main'
3838
uses: docker/[email protected]
3939
with:
4040
push: true
@@ -43,7 +43,7 @@ jobs:
4343
"user=${{ secrets.NUGET_USER }}"
4444
"token=${{ secrets.NUGET_PASSWORD }}"
4545
- name: Push to GitHub Packages - Release
46-
if: contains(github.ref, 'refs/tags/v')
46+
if: startsWith(github.ref, 'refs/tags/v') || startsWith(github.event.inputs.tag, 'v')
4747
uses: docker/[email protected]
4848
with:
4949
push: true

0 commit comments

Comments
 (0)