Github 操作部署未能在未经授权的情况下执行工作区

时间:2021-02-15 09:41:09

标签: github github-actions

我正在尝试在进行推送时部署 deta micro,但是当 GitHub 操作数据自动部署由于未知原因失败时,它会引发错误。这是实际的日志

enter image description here

这是实际的 GitHub 操作文件

# This is a basic workflow to help you get started with Actions

name: Deploy to deta

# Controls when the action will run. 
on:
  # Triggers the workflow on push or pull request events but only for the main branch
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
  # This workflow contains a single job called "build"
  deploy:
    runs-on: ubuntu-latest
    steps:
      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
      - uses: actions/checkout@v2
      - uses: BogDAAAMN/deta-deploy-action@v1.0.0
        with:
            deta-access-token: ${{ secrets.DETA_TOKEN }} #Deta access token https://docs.deta.sh/docs/cli/auth
            deta-name: 'great-usernames-api' #Deta Micro name https://docs.deta.sh/docs/cli/commands/#deta-clone
            deta-project: 'default' #Deta project name https://docs.deta.sh/docs/cli/commands/#deta-clone
      

0 个答案:

没有答案