Skip to content

스트리머의 영향력 구체화 #6

스트리머의 영향력 구체화

스트리머의 영향력 구체화 #6

name: Auto Close Issue on Task Completion
on:
issues:
types: [opened, edited]
issue_comment:
types: [created, edited]
jobs:
auto-close-issue:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Check for task list
id: task-check
run: |
if echo "${{ github.event.issue.body }}" | grep -q "\- \[ \]"; then
echo "::set-output name=has_tasks::true"
else
echo "::set-output name=has_tasks::false"
fi
- name: Auto close issue if all tasks are completed
if: steps.task-check.outputs.has_tasks == 'true' && contains(github.event.issue.body, "- [x]") && !contains(github.event.issue.body, "- [ ]")

Check failure on line 26 in .github/workflows/auto-close-issue.yml

View workflow run for this annotation

GitHub Actions / Auto Close Issue on Task Completion

Invalid workflow file

The workflow is not valid. .github/workflows/auto-close-issue.yml (Line: 26, Col: 13): Unexpected symbol: '"-'. Located at position 83 within expression: steps.task-check.outputs.has_tasks == 'true' && contains(github.event.issue.body, "- [x]") && !contains(github.event.issue.body, "- [ ]")
uses: peter-evans/close-issue@v1
with:
comment: "모든 태스크가 완료되어 이슈를 자동으로 닫습니다!"
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}