Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): Dispatch documentation notifications upon label added/removed #1404

Merged
merged 4 commits into from
Jun 5, 2023
Merged
Show file tree
Hide file tree
Changes from all 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: 0 additions & 32 deletions .github/workflows/label_docs.yml

This file was deleted.

31 changes: 26 additions & 5 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
- opened
- reopened
- edited
- synchronize
phated marked this conversation as resolved.
Show resolved Hide resolved

permissions:
pull-requests: write
Expand All @@ -15,10 +14,32 @@ jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: github/[email protected]
# We continue-on-error because the action is buggy and tries to remove labels when they don't exist
continue-on-error: true
- name: Label pull request
# We can switch hash to release number once it is tagged
uses: github/issue-labeler@6ae80f5cf189fd96d96a4a4125c60e87cba0578d
id: issue-labeler
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
repo-token: ${{ secrets.GITHUB_TOKEN }}
configuration-path: .github/labeler.yml
enable-versioned-regex: 0
sync-labels: 1
phated marked this conversation as resolved.
Show resolved Hide resolved

- name: Create documentation issue
if: ${{ steps.issue-labeler.outputs.labels-added }}
uses: benc-uk/workflow-dispatch@v1
with:
workflow: new-migrated-issue.yml
repo: noir-lang/docs
ref: master
token: ${{ secrets.DOCS_REPO_TOKEN }}
inputs: '{ "pr-number": "${{ github.event.pull_request.number }}" }'

- name: Close documentation issue
if: ${{ steps.issue-labeler.outputs.labels-removed }}
uses: benc-uk/workflow-dispatch@v1
with:
workflow: delete-migrated-issue.yml
repo: noir-lang/docs
ref: master
token: ${{ secrets.DOCS_REPO_TOKEN }}
inputs: '{ "pr-number": "${{ github.event.pull_request.number }}" }'