Relative Content

Tag Archive for github-actionscicd

GitHub Actions matrix job running despite false conditions

I am experiencing unexpected behavior in my GitHub Actions workflow where a job is being triggered despite all conditions evaluating to false. Specifically, the docker job starts even when all outputs from the changes job are false, which should prevent any of the matrix entries from running. Additionally, I am unable to access ${{ matrix.image }} when all conditions are false. Below is the relevant part of my workflow:

How to conditionally set Environment in GitHub Actions workflow

I have a Github Actions workflow and need to set the project environment conditionally so as to not duplicate code in multiple jobs. I have a simple logic to determine the branch then I am trying to set the output so the other jobs can use it. The output is not being passed through to the next job as the Deploy step is showing blank at the beginning of my planning job.