GitHub Actions를 사용하여 정기적으로 Issue를 만드는 방법
3690 단어 GitHubActionsautomationGitHub
이게 뭐야
GitHub Actions 에서 Issue를 정기적으로 작성하기 위한 YML 파일의 정의를 기재한다

사용할 Actions
설정
디렉토리 만들기
.github
폴더 아래에 나열되어 있습니다. cd path/to/repository
mkdir -p .github/workflows
YML 파일 만들기
touch .github/workflows/create_issue.yml
설정 작성

name: Create an issue on Monday 09:00 (JST)
on:
schedule:
- cron: '0 0 * * 1'
jobs:
create_issues:
runs-on: ubuntu-latest
steps:
- name: Get today and tomorrow date
id: date
run: |
echo "::set-output name=tomorrow::$(date "+%Y/%m/%d" -d "1 day")"
- name: Create an issue
uses: actions-ecosystem/action-create-issue@v1
with:
github_token: ${{ secrets.github_token }}
title: '【${{ steps.date.outputs.tomorrow }}】定期タスク'
body: |
## To do
+ [ ] 準備
labels: |
Routine
설명이 끝나면 master(main) 브랜치에 commit & push 해 둡시다.
References
Reference
이 문제에 관하여(GitHub Actions를 사용하여 정기적으로 Issue를 만드는 방법), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/mziyut/items/34435e9cb3fd76e7e86f텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)