From 4d1d5b8d6f91079644a3f2e4081d9b214a60b9df Mon Sep 17 00:00:00 2001 From: Hamlet Tanyavong <34531738+HamletTanyavong@users.noreply.github.com> Date: Sun, 22 Oct 2023 02:27:55 -0500 Subject: [PATCH] Update job name - Move branch-enforcer.yml file to workflows solution folder --- .github/workflows/branch-enforcer.yml | 5 +++-- Mathematics.NET.sln | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/branch-enforcer.yml b/.github/workflows/branch-enforcer.yml index 6e7b2caa..2615e935 100644 --- a/.github/workflows/branch-enforcer.yml +++ b/.github/workflows/branch-enforcer.yml @@ -6,10 +6,11 @@ on: pull_request: jobs: - check_branch: + check-branch: + name: "Check Branch" runs-on: ubuntu-latest steps: - - name: Check branch + - name: Check Branch if: github.base_ref == 'main' && github.head_ref != 'dev' run: | echo "ERROR: Can only merge to main branch from dev branch" diff --git a/Mathematics.NET.sln b/Mathematics.NET.sln index 907ab674..ecdd58e3 100644 --- a/Mathematics.NET.sln +++ b/Mathematics.NET.sln @@ -28,7 +28,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{9EB2 EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{1B32D7FF-257B-49BB-B495-D64E5E6C4C82}" ProjectSection(SolutionItems) = preProject - branch-enforcer.yml = branch-enforcer.yml + .github\workflows\branch-enforcer.yml = .github\workflows\branch-enforcer.yml .github\workflows\codeql.yml = .github\workflows\codeql.yml .github\workflows\generate-documentation-site.yml = .github\workflows\generate-documentation-site.yml EndProjectSection