Skip to content

Workflow file for this run

# 기능 업데이트가 필요함 현재 원하는 방식으로 작동하지 않음.
# name: Auto PR and Comment
# on:
# schedule:
# - cron: "45 7 * * *"
# jobs:
# create-pr-and-comment:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout repository
# uses: actions/checkout@v2
# # 파일을 자동으로 수정
# - name: Modify a file
# run: echo "Update made on $(date)" >> auto-update-file.txt
# # PR 생성
# - name: Create Pull Request
# id: create_pr
# uses: peter-evans/create-pull-request@v4
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# commit-message: "Auto update for testing"
# title: "Auto-generated PR for testing"
# body: "This PR is auto-generated for testing purposes."
# base: v4.1-internal
# branch: auto-generated-branch # PR의 새로운 브랜치 이름
# delete-branch: true # PR이 머지되면 자동으로 브랜치를 삭제
# - name: Trigger repository_dispatch event
# run: |
# curl -X POST \
# -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
# -H "Accept: application/vnd.github.v3+json" \
# https://api.github.com/repos/${{ github.repository }}/dispatches \
# -d '{"event_type":"custom_event"}'
# # # PR에 코멘트 추가
# # - name: Add comment to PR
# # uses: actions/github-script@v6
# # with:
# # script: |
# # const pr_number = ${{ env.PULL_REQUEST_NUMBER }};
# # console.log(`PR Number: ${pr_number}`);
# # await github.rest.issues.createComment({
# # issue_number: pr_number,
# # owner: context.repo.owner,
# # repo: context.repo.repo,
# # body: '/test'
# # });
# # github-token: ${{ secrets.GITHUB_TOKEN }}