POL-1402 Azure Rightsizing Compute: Consider Managed Disk (#2808) #972
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
name: Generate Policy Master Permissions JSON | |
on: | |
# Trigger this workflow on pushes to master | |
push: | |
branches: | |
- master | |
- POL-918-create-master-policy-perm-list-continued | |
# Workflow dispatch trigger allows manually running workflow | |
workflow_dispatch: | |
branches: | |
- master | |
- POL-918-create-master-policy-perm-list-continued | |
jobs: | |
master-policy-permissions: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # Speed up checkout by not fetching history | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
- name: Run Generate Policy Master Permissions Script | |
id: policy_permissions_json | |
run: | | |
ruby tools/policy_master_permission_generation/generate_policy_master_permissions.rb | |
- name: Create Pull Request | |
id: cpr | |
uses: peter-evans/create-pull-request@v4 | |
with: | |
commit-message: "Update Policy Master Permissions List" | |
title: "Update Policy Master Permissions List" | |
body: "Update Policy Master Permissions List from GitHub Actions Workflow [${{ github.workflow }}](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})" | |
branch: "task/update-policy-master-permissions" | |
delete-branch: true | |
labels: "automation" | |
- name: Check outputs | |
if: ${{ steps.cpr.outputs.pull-request-number }} | |
run: | | |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" | |
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" |