Files
firefly-iii/.github/workflows/debug-info-actions.yml
2024-01-13 07:36:09 +01:00

34 lines
884 B
YAML

name: 'Issues - respond to hidden commands'
# the workflow to execute on is comments that are newly created
on:
issues:
types: [opened, edited]
issue_comment:
types: [created]
# permissions needed for reacting to IssueOps commands on issues and PRs
permissions:
pull-requests: write
issues: write
checks: read
jobs:
respond:
runs-on: ubuntu-latest
steps:
- uses: github/command@v1.1.0
id: command
with:
command: ".eOxNZAmyGz6CXMyf"
- run: |
ISSUE_BODY=$(gh issue view 8380 --json body)
if [[ $string == *".eOxNZAmyGz6CXMyf"* ]]; then
gh issue edit "$NUMBER" --add-label "$LABELS"
fi
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}
LABELS: v2-layout-issue