generated from credfeto/cs-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Dependencies] - Update .github/workflows/pr-lint.yml to match the te…
…mplate repo
- Loading branch information
Showing
1 changed file
with
16 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ env: | |
BASE_REF: ${{github.base_ref}} | ||
jobs: | ||
info: | ||
if: ${{endsWith(github.repository, '-template')}} | ||
if: endsWith(github.repository, '-template') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Initialise Workspace" | ||
|
@@ -43,9 +43,9 @@ jobs: | |
# with: | ||
# fetch-depth: 0 | ||
# - if: |- | ||
# ${{!endsWith(github.repository, '-template') | ||
# !endsWith(github.repository, '-template') | ||
# && !startsWith(github.head_ref, 'release/') | ||
# && !startsWith(github.head_ref, 'hotfix/')}} | ||
# && !startsWith(github.head_ref, 'hotfix/') | ||
# uses: seferov/[email protected] | ||
# with: | ||
# title-regex: '^\[FF\-\d*?\](:)?(\ )' | ||
|
@@ -58,14 +58,14 @@ jobs: | |
- name: "Initialise Workspace" | ||
shell: bash | ||
run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" | ||
- if: ${{(github.actor != 'dependabot[bot]' && !endsWith(github.repository , '-template'))}} | ||
- if: (github.actor != 'dependabot[bot]' && !endsWith(github.repository , '-template')) | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- if: ${{(github.actor != 'dependabot[bot]' && !endsWith(github.repository , '-template'))}} | ||
- if: (github.actor != 'dependabot[bot]' && !endsWith(github.repository , '-template')) | ||
shell: bash | ||
run: echo "CHANGES=$(git diff --exit-code --no-patch --merge-base origin/main CHANGELOG.md 2> /dev/null && echo 0 || echo $?)" >> "$GITHUB_ENV" | ||
- if: ${{(github.actor != 'dependabot[bot]' && !endsWith(github.repository , '-template')) && env.CHANGES == '0'}} | ||
- if: (github.actor != 'dependabot[bot]' && !endsWith(github.repository , '-template')) && env.CHANGES == '0' | ||
uses: actions/[email protected] | ||
with: | ||
script: | | ||
|
@@ -84,13 +84,13 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
- name: "Get version from global.json" | ||
if: ${{(github.actor != 'dependabot[bot]' && !endsWith(github.repository , '-template'))}} | ||
if: (github.actor != 'dependabot[bot]' && !endsWith(github.repository , '-template')) | ||
uses: credfeto/[email protected] | ||
with: | ||
file: src/global.json | ||
fallback: 7.0.* | ||
- name: "Install dotnet" | ||
if: ${{(github.actor != 'dependabot[bot]' && !endsWith(github.repository , '-template'))}} | ||
if: (github.actor != 'dependabot[bot]' && !endsWith(github.repository , '-template')) | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{secrets.SOURCE_PUSH_TOKEN}} | ||
|
@@ -108,7 +108,7 @@ jobs: | |
7.0.* | ||
${{env.DOTNET_VERSION}} | ||
- name: "Enable dotnet tools" | ||
if: ${{(github.actor != 'dependabot[bot]' && !endsWith(github.repository , '-template'))}} | ||
if: (github.actor != 'dependabot[bot]' && !endsWith(github.repository , '-template')) | ||
shell: bash | ||
run: dotnet new tool-manifest | ||
env: | ||
|
@@ -121,7 +121,7 @@ jobs: | |
DOTNET_TC_QuickJitForLoops: "1" | ||
DOTNET_TieredPGO: "1" | ||
- name: "Install Changelog tool" | ||
if: ${{(github.actor != 'dependabot[bot]' && !endsWith(github.repository , '-template'))}} | ||
if: (github.actor != 'dependabot[bot]' && !endsWith(github.repository , '-template')) | ||
shell: bash | ||
run: dotnet tool install --local Credfeto.ChangeLog.Cmd | ||
env: | ||
|
@@ -134,7 +134,7 @@ jobs: | |
DOTNET_TC_QuickJitForLoops: "1" | ||
DOTNET_TieredPGO: "1" | ||
- name: "Check Changelog" | ||
if: ${{(github.actor != 'dependabot[bot]' && !endsWith(github.repository , '-template'))}} | ||
if: (github.actor != 'dependabot[bot]' && !endsWith(github.repository , '-template')) | ||
shell: bash | ||
run: dotnet changelog --changelog CHANGELOG.md --check-insert "origin/${{github.base_ref}}" | ||
env: | ||
|
@@ -227,12 +227,12 @@ jobs: | |
# optional parameter defaults to the current user | ||
token: ${{github.token}} | ||
- name: "Checkout Source" | ||
if: ${{steps.visibility.outputs.is_public == 'true'}} | ||
if: steps.visibility.outputs.is_public == 'true' | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: 'Dependency Review' | ||
if: ${{steps.visibility.outputs.is_public == 'true'}} | ||
if: steps.visibility.outputs.is_public == 'true' | ||
uses: actions/[email protected] | ||
|
||
no-merge-commits: | ||
|
@@ -251,7 +251,9 @@ jobs: | |
uses: greenled/[email protected] | ||
|
||
lint-code: | ||
if: ${{github.event.pull_request.draft == false && ( !startsWith(github.head_ref, 'release/') && !startsWith(github.head_ref, 'hotfix/') )}} | ||
if: |- | ||
github.event.pull_request.draft == false && | ||
( !startsWith(github.head_ref, 'release/') && !startsWith(github.head_ref, 'hotfix/') ) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Initialise Workspace" | ||
|