615825f40e
Bumps [dsanders11/project-actions](https://github.com/dsanders11/project-actions) from 1.2.0 to 1.3.0.
- [Release notes](https://github.com/dsanders11/project-actions/releases)
- [Changelog](https://github.com/dsanders11/project-actions/blob/main/.releaserc.json)
- [Commits](82e99438bd...eb760c4889
)
---
updated-dependencies:
- dependency-name: dsanders11/project-actions
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
38 lines
1.3 KiB
YAML
38 lines
1.3 KiB
YAML
name: Issue Unlabeled
|
|
|
|
on:
|
|
issues:
|
|
types: [unlabeled]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
issue-unlabeled-blocked:
|
|
name: All blocked/* labels removed
|
|
if: startsWith(github.event.label.name, 'blocked/') && github.event.issue.state == 'open'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check for any blocked labels
|
|
id: check-for-blocked-labels
|
|
run: |
|
|
set -eo pipefail
|
|
BLOCKED_LABEL_COUNT=$(echo '${{ toJSON(github.event.issue.labels.*.name) }}' | jq '[ .[] | select(startswith("blocked/")) ] | length')
|
|
if [[ $BLOCKED_LABEL_COUNT -eq 0 ]]; then
|
|
echo "NOT_BLOCKED=1" >> "$GITHUB_OUTPUT"
|
|
fi
|
|
- name: Generate GitHub App token
|
|
if: ${{ steps.check-for-blocked-labels.outputs.NOT_BLOCKED }}
|
|
uses: electron/github-app-auth-action@384fd19694fe7b6dcc9a684746c6976ad78228ae # v1.1.1
|
|
id: generate-token
|
|
with:
|
|
creds: ${{ secrets.ISSUE_TRIAGE_GH_APP_CREDS }}
|
|
org: electron
|
|
- name: Set status
|
|
if: ${{ steps.check-for-blocked-labels.outputs.NOT_BLOCKED }}
|
|
uses: dsanders11/project-actions/edit-item@eb760c48894b5702398529cbb8f6e98378e315d0 # v1.3.0
|
|
with:
|
|
token: ${{ steps.generate-token.outputs.token }}
|
|
project-number: 90
|
|
field: Status
|
|
field-value: 📥 Was Blocked
|