Skip to content

[CoE Starter Kit - QUESTION] How to get list of Environments Associated with Multiple DLP Policy #14600

[CoE Starter Kit - QUESTION] How to get list of Environments Associated with Multiple DLP Policy

[CoE Starter Kit - QUESTION] How to get list of Environments Associated with Multiple DLP Policy #14600

name: Auto Assign Issues to Projects
on:
issues:
types:
- opened
- reopened
- closed
pull_request:
types:
- opened
- reopened
- review_requested
- closed
# map fields with customized labels
env:
todo: Todo ✏️
done: Done ✅
in_progress: In Progress 🚧
jobs:
issue_opened_or_reopened:
name: issue_opened_or_reopened
runs-on: ubuntu-latest
if: github.event_name == 'issues' && (github.event.action == 'opened' || github.event.action == 'reopened')
steps:
- name: Move issue to ALM Accelerator ${{ env.todo }}
uses: leonsteinhaeuser/[email protected]
if: contains(github.event.issue.labels.*.name, 'alm-accelerator')
with:
gh_token: ${{ secrets.MY_GITHUB_TOKEN }}
organization: microsoft
project_id: 233
resource_node_id: ${{ github.event.issue.node_id }}
status_value: ${{ env.todo }} # Target status
- name: Move issue to CoE Starter Kit ${{ env.todo }}
uses: leonsteinhaeuser/[email protected]
if: contains(github.event.issue.labels.*.name, 'coe-starter-kit')
with:
gh_token: ${{ secrets.MY_GITHUB_TOKEN }}
organization: microsoft
project_id: 195
resource_node_id: ${{ github.event.issue.node_id }}
status_value: ${{ env.todo }} # Target status
issue_closed:
name: issue_closed
runs-on: ubuntu-latest
if: github.event_name == 'issues' && github.event.action == 'closed'
steps:
- name: Moved issue to ALM Accelerator ${{ env.done }}
uses: leonsteinhaeuser/[email protected]
if: contains(github.event.issue.labels.*.name, 'alm-accelerator')
with:
gh_token: ${{ secrets.MY_GITHUB_TOKEN }}
organization: microsoft
project_id: 233
resource_node_id: ${{ github.event.issue.node_id }}
status_value: ${{ env.done }} # Target status
- name: Moved issue to Coe Starter Kit ${{ env.done }}
uses: leonsteinhaeuser/[email protected]
if: contains(github.event.issue.labels.*.name, 'coe-starter-kit')
with:
gh_token: ${{ secrets.MY_GITHUB_TOKEN }}
organization: microsoft
project_id: 195
resource_node_id: ${{ github.event.issue.node_id }}
status_value: ${{ env.done }} # Target status