Skip to content

Commit 3df5f7f

Browse files
committed
try customizing branch name with github vars
1 parent 3536172 commit 3df5f7f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/dotnet.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
"dotenv=${{ secrets.DOTENV }}"
4040
build-args: |
4141
GITHUB_RUN_ID=${{ github.run_id }}
42-
GITHUB_RUN_ATTEMPT=${{ github.run_attempt }}
42+
GITHUB_RUN_NUMBER=${{ github.run_number }}
4343
4444
nunit:
4545
runs-on: ubuntu-latest

dotnet-nunit/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ WORKDIR /workspace
2222
COPY . .
2323

2424
ARG GITHUB_RUN_ID
25-
ARG GITHUB_RUN_ATTEMPT
26-
ARG SAUCE_VISUAL_BRANCH_NAME=${GITHUB_RUN_ID}${GITHUB_RUN_ATTEMPT}
25+
ARG GITHUB_RUN_NUMBER
26+
ARG SAUCE_VISUAL_BRANCH_NAME=${GITHUB_RUN_ID}${GITHUB_RUN_NUMBER}
2727

2828
RUN --mount=type=secret,id=dotenv,target=/workspace/.env env $(cat /workspace/.env | xargs) runme run dotnet-test
2929
RUN --mount=type=secret,id=dotenv,target=/workspace/.env env $(cat /workspace/.env | xargs) runme run dotnet-test-modified

0 commit comments

Comments
 (0)