小编nac*_*456的帖子

Github Actions $GITHUB_OUTPUT 似乎没有设置作业输出

我一直在使用 Github Actions 来部署数据工程项目的更改。我收到警告称 set-output 命令已被弃用,并尝试使用 $GITHUB_OUTPUT 但我无法使用它来设置作业的输出。

if_merged:
      runs-on: ubuntu-latest
      if: github.event.pull_request.merged == true
      name: check diff changed
      steps:
        - name: Checkout
          uses: actions/checkout@v3
          with:
            # Checkout as many commits as needed for the diff
            fetch-depth: 2
        
        - shell: pwsh
          id: check_file_changed
          run: |
            # Diff HEAD with the previous commit
            # filters out deleted files
            $diff = git diff --name-only --diff-filter=d HEAD^ HEAD
            
            # Check what files were in the diff
            echo $diff
            
            # Check if a file …
Run Code Online (Sandbox Code Playgroud)

github-actions

11
推荐指数
1
解决办法
8806
查看次数

标签 统计

github-actions ×1