Change output value from resource group ID to name #857
Workflow file for this run
This file contains hidden or 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
| name: Pre Pull Request Check | |
| on: | |
| pull_request: | |
| types: [ 'opened', 'synchronize' ] | |
| paths: | |
| - '.github/**' | |
| - '.github/workflows/**' | |
| - 'quickstart/**' | |
| jobs: | |
| prepr-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 #v3.6.0 | |
| - name: Get changed files | |
| id: changed-files | |
| uses: step-security/changed-files@3dbe17c78367e7d60f00d78ae6781a35be47b4a1 #v45.0.1 | |
| with: | |
| dir_names: true | |
| separator: "," | |
| dir_names_include_files: "quickstart/*" | |
| files: "quickstart/**" | |
| dir_names_max_depth: 2 | |
| - name: pr-check | |
| run: | | |
| export CHANGED_FOLDERS="${{ steps.changed-files.outputs.all_changed_files }}" | |
| if [ -z "${{ github.event.number }}" ]; then | |
| CHANGED_FOLDERS=$(find ./quickstart -maxdepth 1 -mindepth 1 -type d | tr '\n' ',') | |
| fi | |
| docker run --rm -v $(pwd):/src -w /src -e CHANGED_FOLDERS mcr.microsoft.com/azterraform:latest make pr-check |