fix(CI): revert if in job conditionals on docker build (#18147)

Don't use env in step.if
This commit is contained in:
Mike Delago
2024-01-10 07:53:45 -05:00
committed by GitHub
parent fdbde0b866
commit 7ec2585cc8
+3 -3
View File
@@ -43,14 +43,14 @@ jobs:
# If you're wanting containers without mod-eluna, the best solution is to # If you're wanting containers without mod-eluna, the best solution is to
# build them locally (such as with `docker compose build`) # build them locally (such as with `docker compose build`)
- name: Download Eluna - name: Download Eluna
if: env.RUNNING_ON_PRIMARY_BRANCH == 'true' if: github.repository == 'azerothcore/azerothcore-wotlk' && github.ref_name == 'master'
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
repository: azerothcore/mod-eluna repository: azerothcore/mod-eluna
path: modules/mod-eluna path: modules/mod-eluna
- name: Login to Docker Hub - name: Login to Docker Hub
if: env.RUNNING_ON_PRIMARY_BRANCH == 'true' if: github.repository == 'azerothcore/azerothcore-wotlk' && github.ref_name == 'master'
uses: docker/login-action@v1 uses: docker/login-action@v1
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
@@ -109,7 +109,7 @@ jobs:
dockerfile: apps/docker/Dockerfile.dev-server dockerfile: apps/docker/Dockerfile.dev-server
- name: Trigger acore-docker CI - name: Trigger acore-docker CI
if: env.RUNNING_ON_PRIMARY_BRANCH == 'true' if: github.repository == 'azerothcore/azerothcore-wotlk' && github.ref_name == 'master'
uses: peter-evans/repository-dispatch@v2 uses: peter-evans/repository-dispatch@v2
with: with:
token: ${{ secrets.ACORE_DOCKER_REPO_ACCESS_TOKEN }} token: ${{ secrets.ACORE_DOCKER_REPO_ACCESS_TOKEN }}