Skip to content

Commit 9e060f9

Browse files
author
Murilo Marinho
committed
[GithubActions] Fixing workflow syntax error (see actions/runner#2372)
1 parent 94a83db commit 9e060f9

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

.github/workflows/docker_build.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
name: Build Docker Image for CoppeliaSim EDU
22
on: [push, workflow_dispatch]
33

4-
env:
5-
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
6-
74
jobs:
85
build_image:
9-
name: Build Docker Image for ${{env.BRANCH_NAME}}
6+
name: Build Docker Image for ${{ github.head_ref || github.ref_name }}
107
runs-on: ubuntu-latest
118
steps:
129
- uses: actions/checkout@v2
@@ -22,11 +19,11 @@ jobs:
2219
- name: Set up Docker Buildx
2320
uses: docker/setup-buildx-action@v3
2421

25-
- name: Build and push CoppeliaSim for ${{env.BRANCH_NAME}}
22+
- name: Build and push CoppeliaSim for ${{ github.head_ref || github.ref_name }}
2623
uses: docker/build-push-action@v6
2724
with:
2825
platforms: linux/amd64
2926
push: true
3027
file: coppeliasim/Dockerfile
3128
tags: |
32-
${{ vars.DOCKER_USERNAME }}/coppeliasim:${{env.BRANCH_NAME}}
29+
${{ vars.DOCKER_USERNAME }}/coppeliasim:${{ github.head_ref || github.ref_name }}

0 commit comments

Comments
 (0)