needs: [ "pages:deploy" ]
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Following .gitlab-ci.yml fails:
stages:
- deploy
- after
pages:
stage: deploy
script:
- mkdir public && date > public/index.html
artifacts:
paths:
- public
# this job needs to be started _after_ pages:deploy is finished
pages:after:
stage: after
script:
- pwd
# => error: "This GitLab CI configuration is invalid: pages:after job: undefined need: pages:deploy"
needs: ["pages:deploy"]
This prevents from waiting for "pages:deploy" to finish before starting the next job.
Edited by 🤖 GitLab Bot 🤖