Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

WR Set PR Labels

WR Set PR Labels #4680

name:WR Set PR Labels
on:
workflow_run:
workflows:['Set PR Labels']
types:[completed]
jobs:
on-failure:
runs-on:ubuntu-latest
if:${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
-run:echo 'The Set PR Labels workflow failed. Please check the logs.'
-run:exit 1
on-success:
runs-on:ubuntu-latest
if:${{ github.event.workflow_run.conclusion == 'success' }}
steps:
-run:echo 'The Set PR Labels workflow succeeded. The workflow will continue.'
set-pr-labels:
needs:on-success
runs-on:ubuntu-latest
env:
ARTIFACT_NAME:'pr-labels'
SCRIPT_PATH:'./github-actions/trigger-pr/set-pr-labels.js'
steps:
-uses:actions/checkout@v5
-id:download-artifact
name:'Download artifact'
uses:actions/github-script@v8
with:
script:|
const { downloadLabelsArtifact } = require('${{ env.SCRIPT_PATH }}');
await downloadLabelsArtifact({ github, context }, '${{ env.ARTIFACT_NAME }}');
-id:extract-artifact
name:Extract artifact
run:unzip '${{ env.ARTIFACT_NAME }}.zip'
-id:set-pr-labels
name:'Set labels on the pull request'
uses:actions/github-script@v8
with:
script:|
const { setLabelsOnPR } = require('${{ env.SCRIPT_PATH }}');
await setLabelsOnPR({ github, context, core }, '${{ env.ARTIFACT_NAME }}.json');

[8]ページ先頭

©2009-2025 Movatter.jp