Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/az-keyvault-get/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ runs:
using: composite
steps:
- name: Azure KeyVault get Value
uses: azure/cli@089eac9d8cc39f5d003e94f8b65efc51076c9cbd # v2.1.0
uses: azure/cli@9eb25b8360668fb0ecbafa808d40e2197b2f5f52 # v3.0.0
id: GetAzKeyVaultSecret
with:
inlineScript: |
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/az-login/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ runs:
using: composite
steps:
- name: Azure DevOps Login
uses: azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # v2.3.0
uses: azure/login@532459ea530d8321f2fb9bb10d1e0bcf23869a43 # v3.0.0
with:
client-id: ${{ inputs.client-id }}
tenant-id: ${{ inputs.tenant-id }}
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/validate-pr-labels/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ runs:
using: composite
steps:
- name: Check PR has at least one type of PR label
uses: mheap/github-action-required-labels@fb29a14a076b0f74099f6198f77750e8fc236016 #v5.5.0
uses: mheap/github-action-required-labels@23e10fde7e062233401931a0eece796cd9bf3177 #v5.6.0
with:
mode: minimum
count: 1
labels: 'feature, bug, bugfix, dependencies, dependency, chore'
- name: "Check PR does not have a 'do not merge' label"
uses: mheap/github-action-required-labels@fb29a14a076b0f74099f6198f77750e8fc236016 #v5.5.0
uses: mheap/github-action-required-labels@23e10fde7e062233401931a0eece796cd9bf3177 #v5.6.0
with:
mode: exactly
count: 0
Expand Down
16 changes: 13 additions & 3 deletions .github/actions/validate-pr-title/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,17 @@ runs:
using: composite
steps:
- name: "Check PR title follows '${{ inputs.validate-semVer == true && '+semver: <minor|major|patch> ' || '' }}<ticket id> <description>'"
uses: deepakputhraya/action-pr-title@3864bebc79c5f829d25dd42d3c6579d040b0ef16 #v1.0.2
with:
regex: ^${{ inputs.validate-semVer == true && '(\+semver:\s(minor|major|patch)\s)?' || '' }}([A-Z][A-Z0-9]*-\d+(:)?\s\w)
if: ${{ contains(github.head_ref, 'release/') == false && contains(github.head_ref, 'merge/') == false }}
shell: bash
env:
GH_TOKEN: ${{ github.token }}
PR_NUMBER: ${{ github.event.pull_request.number }}
REPO: ${{ github.repository }}
SEMVER_PREFIX: ${{ inputs.validate-semVer == true && '(\+semver:\s(minor|major|patch)\s)?' || '' }}
run: |
TITLE=$(gh pr view "$PR_NUMBER" --repo "$REPO" --json title --jq '.title')
REGEX="^${SEMVER_PREFIX}([A-Z][A-Z0-9]*-[0-9]+(:)?\s\w)"
if ! echo "$TITLE" | grep -Pq "$REGEX"; then
echo "::error::Pull Request title \"$TITLE\" failed to pass match regex - $REGEX"
exit 1
fi
Loading