Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev/feature 16 ci wf refactor #23

Merged
merged 12 commits into from
May 3, 2022
Next Next commit
updating working - testing echo branch name in wf
  • Loading branch information
calebjenkins committed May 3, 2022
commit 5f552dfca07e48af59a5a7e4811b07a3c41dcc59
4 changes: 4 additions & 0 deletions .github/workflows/dev-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:
env:
Nuget_Key: secrets.FAKEAUTH_NUGET_KEY
Nuget_URL: "https://api.nuget.org/v3/index.json"
Branch_Name: ${{ GITHUB_REF_NAME }}

jobs:
build:
Expand All @@ -26,6 +27,9 @@ jobs:
with:
fetch-depth: 0

- name: Echo Branch name
run: echo {{Branch_Name}}

- name: Get version
id: get_version
uses: greenygh0st/net-proj-release-version@v1
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/main-ci-test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
with:
fetch-depth: 0

- name: Detect if workflow is running on origin/Develop
- name: Detect if workflow is running on origin/main
id: detect_main
run: git rev-parse HEAD | grep $(git rev-parse origin/main)
continue-on-error: true
Expand Down Expand Up @@ -56,10 +56,6 @@ jobs:
with:
token: ${{secrets.github_token}}

- name: Print new build number
run: echo "Build number is ${BUILD_NUMBER}"
# Or, if you're on Windows: echo "Build number is ${env:BUILD_NUMBER}"

- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
Expand Down