Ewoodthomas/contint 4452 collect pods info from api server #2432
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: "Add reviewers and ask review for dependabot PR" | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
branches: | |
- main | |
permissions: {} | |
jobs: | |
add_reviewers: | |
if: github.event.pull_request.user.login == 'dependabot[bot]' | |
runs-on: ubuntu-latest | |
environment: | |
name: dependabot | |
permissions: | |
pull-requests: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
persist-credentials: false | |
- name: Setup python | |
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 | |
with: | |
python-version-file: .python-version | |
cache: 'pip' | |
cache-dependency-path: '.dda/version' | |
- name: Install dda | |
uses: ./.github/actions/install-dda | |
with: | |
features: legacy-tasks | |
# Use a token so that the ask-review workflow is triggered | |
- uses: actions/create-github-app-token@0d564482f06ca65fa9e77e2510873638c82206f2 # v1.11.5 | |
id: app-token | |
with: | |
app-id: ${{ vars.DD_GITHUB_TOKEN_GENERATOR_APP_ID }} | |
private-key: ${{ secrets.DD_GITHUB_TOKEN_GENERATOR_PRIVATE_KEY }} | |
- name: Add reviewers and ask review | |
env: | |
PR_NUMBER: ${{ github.event.pull_request.number }} | |
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} | |
run: dda inv -e issue.add-reviewers -p $PR_NUMBER |