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

Test action update obsolete calls #6

Merged
merged 3 commits into from
Jan 16, 2024
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
13 changes: 10 additions & 3 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
Documentation:
- changed-files:
- any-glob-to-any-file: ['docs/*', '**/*.md']
- any-glob-to-any-file:
- "docs/*"
- "**/*.md"

Software:
- changed-files:
- any-glob-to-any-file: ['software/**/*', 'stamp/**/*', 'charts/**/*']
- any-glob-to-any-file:
- "software/**/*"
- "stamp/**/*"
- "charts/**/*"

Infrastructure:
- changed-files:
- any-glob-to-any-file: ['bicep/**/*', 'infrastructure/**/*']
- any-glob-to-any-file:
- "bicep/**/*"
- "infrastructure/**/*"
9 changes: 5 additions & 4 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ name: Auto - Label

on:
- pull_request_target

jobs:
labeler:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/labeler@v5
- name: Clone repo
uses: actions/[email protected]
- name: Add label
uses: actions/[email protected]
with:
configuration-path: './github/labeler.yml'
sync-labels: true
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,15 @@ jobs:
REGION="${{ github.event.inputs.region }}"
fi
echo $REGION
echo "::set-output name=REGION::$REGION"
echo "REGION=$REGION" >> $GITHUB_OUTPUT
if [ -z "${{ github.event.inputs.ResourceGroup }}" ]
then
echo "ResourceGroup parameter not available through GitHub event data, setting to default"
echo $DEFAULTRGNAME
echo "::set-output name=RESOURCEGROUP::$DEFAULTRGNAME"
echo "RESOURCEGROUP=$DEFAULTRGNAME" >> $GITHUB_OUTPUT
else
echo "Resource Group parameter found in GitHub event (${{ github.event.inputs.ResourceGroup }})"
echo "::set-output name=RESOURCEGROUP::${{ github.event.inputs.ResourceGroup }}"
echo "RESOURCEGROUP=${{ github.event.inputs.ResourceGroup }}" >> $GITHUB_OUTPUT
fi

- name: Azure Login
Expand Down Expand Up @@ -204,7 +204,7 @@ jobs:
echo "Active deployments : $RUNCOUNT"
echo 'Active deployment list'
az deployment group list -g $RESOURCE_GROUP --query "[?properties.provisioningState=='Running'].[properties.provisioningState, name]"
echo "::set-output name=RUNCOUNT::$RUNCOUNT" #outputting for condition
echo "RUNCOUNT=$RUNCOUNT" >> $GITHUB_OUTPUT

- name: Verify AKS Preview Features are available in target Subscription
if: github.event.inputs.doVerifySteps == 'true'
Expand Down Expand Up @@ -245,7 +245,7 @@ jobs:
inlineScript: |
PARAMOVERRIDES="location=${{ steps.params.outputs.REGION }}"
echo $PARAMOVERRIDES
echo "::set-output name=PARAMOVERRIDES::$PARAMOVERRIDES"
echo "PARAMOVERRIDES=$PARAMOVERRIDES" >> $GITHUB_OUTPUT

- name: Validate Infrastructure deployment
uses: azure/CLI@v1
Expand Down Expand Up @@ -277,7 +277,7 @@ jobs:
echo "The WhatIf json file was created"
fi
cat $WHATIFPATH
echo "::set-output name=edgeSuccess::true"
echo "edgeSuccess=true >> $GITHUB_OUTPUT

- name: What If Analysis Output - Parse output
if: github.event.inputs.doVerifySteps == 'true'
Expand Down Expand Up @@ -356,7 +356,7 @@ jobs:

#outputs
AKS_NAME=$(az deployment group show -n $DEPNAME -g $RESOURCE_GROUP --query "properties.outputs.aksName.value" -o tsv)
echo "::set-output name=AKS_NAME::$AKS_NAME"
echo "AKS_NAME=$AKS_NAME >> $GITHUB_OUTPUT

Verify:
name: Verify
Expand Down