github actions stage dependency using needs

In github action, we often needs to specify dependencies between stages - to ensure stage B will continue to run stage A if stage A is completed.

In order to show this relationship we can use "needs" as shown below:-


artifact-work:
    runs-on: ubuntu-latest
    needs: build-and-publish
    steps:
    - name: download artifact
      uses: actions/download-artifact@v4
      with:
        name: published-artifact-net





Comments

Popular posts from this blog

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type