Skip to content
Merged
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/label_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on:
pull_request_target:
types:
- labeled
- unlabeled

jobs:
dispatch:
runs-on: ubuntu-latest
if: github.event.label.name == 'doc needed'

steps:
- uses: actions/checkout@v3
- name: Set workflowId environment variable
id: set_workflow_id
run: |
if [[ "${{ github.event.action }}" == "labeled" ]]; then
echo "workflowId=new-migrated-issue.yml" >> $GITHUB_ENV
else
echo "workflowId=delete-migrated-issue.yml" >> $GITHUB_ENV
fi

- name: Dispatch
uses: benc-uk/workflow-dispatch@v1
with:
workflow: ${{ env.workflowId }}
repo: noir-lang/docs
ref: master
token: ${{ secrets.DOCS_REPO_TOKEN }}
inputs: '{ "pr_number": "${{ github.event.pull_request.number }}" }'