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

vllm : Failed to infer device type

android studio kotlin source is null error

gemini cli getting file not defined error