Skip to content

workflow fixes and improvements #70

workflow fixes and improvements

workflow fixes and improvements #70

Workflow file for this run

name: Labeller
on:
workflow_call:
inputs:
token:
type: string
jobs:
label:
name: ${{ github.event.action }} ${{ github.event_name }}
# case if the workflow is called improperly
if: |
contains(fromJson('["puppetlabs", "puppet-toy-chest"]'), github.repository_owner) &&
contains(fromJson('["pull_request_target", "issues"]'), github.event_name) &&
contains(fromJson('["opened", "reopened", "labeled", "unlabeled"]'), github.event.action)
runs-on: ubuntu-latest
steps:
- uses: puppetlabs/[email protected]
name: Label issues or pull requests
with:
label_name: community
label_color: '5319e7'
org_membership: puppetlabs
fail_if_member: 'true'
token: ${{ inputs.token != '' && inputs.token || secrets.IAC_COMMUNITY_TOKEN }}