Set Issue Label on successful build #622
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Set Issue Label on successful build" | |
on: | |
workflow_dispatch: | |
issue_comment: | |
types: [created, edited] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: Amwam/[email protected] | |
if: ${{ github.event.issue.pull_request && contains(github.event.issue.labels.*.name, 'automated-build') }} | |
with: | |
keywords: '["Deploy preview for *lfailandscape* ready"]' | |
labels: '["automerge"]' | |
github-token: "${{ secrets.PAT }}" |