Skip to content

Commit

Permalink
add condition to update offer artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
backwind1233 committed Mar 26, 2024
1 parent 5afef95 commit d4b2c32
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
name: Package ARM
on:
workflow_dispatch:
inputs:
updateOfferArtifact:
description: 'Update offer artifact'
required: true
type: boolean
default: false
# Allows you to run this workflow using GitHub APIs
# PERSONAL_ACCESS_TOKEN=<GITHUB_PERSONAL_ACCESS_TOKEN>
# REPO_NAME=WASdev/azure.websphere-traditional.singleserver
Expand Down Expand Up @@ -81,6 +87,7 @@ jobs:
name: ${{steps.artifact_file.outputs.artifactName}}
path: ${{steps.artifact_file.outputs.artifactPath}}
- name: Update offer artifact
if: ${{ inputs.updateOfferArtifact == true || github.event.client_payload.updateOfferArtifact == true }}
uses: microsoft/microsoft-partner-center-github-action@v3
with:
offerId: ${{ env.offerId }}
Expand Down

0 comments on commit d4b2c32

Please sign in to comment.