Skip to content

Commit

Permalink
add publish-release-target-dispatch.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
smdn committed Nov 2, 2024
1 parent 71bd33b commit 541d0cd
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/publish-release-target-dispatch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# SPDX-License-Identifier: MIT
# SPDX-FileCopyrightText: "2022 smdn <smdn@smdn.jp>"

name: Publish release target manual dispatcher

permissions:
contents: write
packages: write
pull-requests: read

on:
workflow_dispatch:
inputs:
pr_number_request_for_release:
description: "The number of pull request that requests to merge the release working branch."
required: true
type: string
dry_run:
description: "If true, performs a trial run."
required: false
type: boolean
default: false

jobs:
run-publish-release-target:
uses: smdn/Smdn.Fundamentals/.github/workflows/publish-release-target.yml@workflows/release-target-v1.8.3
with:
pr_number_request_for_release: ${{ fromJson(github.event.inputs.pr_number_request_for_release) }}
pr_label_request_for_release: 'release-target'
workflow_runs_on: 'ubuntu-24.04'
dotnet_sdk_version: '8.0.100'
dry_run: ${{ fromJson(github.event.inputs.dry_run) }}
secrets:
token_repo: ${{ secrets.PUBLISH_NEW_RELEASE }}
token_push_nuget_org: ${{ secrets.PUBLISH_PACKAGE_NUGETORG }}
token_push_github_packages: ${{ secrets.PUBLISH_NEW_RELEASE }}

0 comments on commit 541d0cd

Please sign in to comment.