인프런 커뮤니티 질문&답변
push 작업 중 아래와 같은 에러가 발생합니다.
작성
·
634
·
수정됨
0


크롤링 데이터 파일 생성 후 나에게 push하기 강의 실습 중 위의 에러가 발생했습니다.
아래는 제 main.yml 파일입니다.
name: helloGithubAction
on: [push]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
      with:
        # 개인 토큰을 사용할 것인지 말 것인지
        persist-credentials: false
    - name: 1. pip 업그래이드
      run: python -m pip install --upgrade pip
    - name: 2. 환경 설정
      run: pip install -r requirements.txt
    - name: 3. 파이썬 실행
      run: python test_crawl_2.py
    - name: Commit files
      run: |
        git config --local user.email "hajuny129@gmail.com"
        git config --local user.name "HaJunYoo"
        git add .
        git commit -m "Run crawler and update current data"
    - name: Push changes
      uses: ad-m/github-push-action@master
      with:
        github_token: ${{ secrets.GITHUB_TOKEN }}
        branch: ${{ github.ref }}
답변 1
1
You have to configure your repository - Settings -> Action -> General -> Workflow permissions and choose read and write permissions





