Add New External DNS Metrics: controller.consecutive.soft.errors & controller.last_reconcile #591
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: Add Milestone on a Merged PR | |
| on: | |
| pull_request: | |
| types: | |
| - closed | |
| branches: | |
| - master | |
| - "[0-9]+.[0-9]+.x" | |
| permissions: {} | |
| jobs: | |
| add-milestone-pr: | |
| name: Add Milestone on PR | |
| if: github.event.pull_request.merged == true | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write # Required for OIDC token federation with dd-octo-sts | |
| contents: read | |
| env: | |
| GH_REPO: ${{ github.repository }} | |
| steps: | |
| - name: Checkout integrations-core repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Get GitHub token via dd-octo-sts | |
| uses: DataDog/dd-octo-sts-action@acaa02eee7e3bb0839e4272dacb37b8f3b58ba80 # v1.0.3 | |
| id: octo-sts | |
| with: | |
| scope: DataDog/integrations-core | |
| policy: self.add-milestone.pull-request | |
| - name: Get repo current milestone | |
| id: current-milestone | |
| run: | | |
| # Use the current_milestone field in the release.json file. | |
| MILESTONE=$(cat release.json | jq -r .current_milestone) | |
| if [ -z "$MILESTONE" ]; then | |
| echo "Error: Couldn't find the current_milestone field in the release.json file." | |
| exit 1 | |
| fi | |
| if [[ ! $MILESTONE =~ ^7\.[0-9]+\.[0-9]+$ ]]; then | |
| echo "Error: Malformed milestone $MILESTONE. It should be of the form '7.x.y'." | |
| exit 1 | |
| fi | |
| echo "MILESTONE=$MILESTONE" >> "$GITHUB_OUTPUT" | |
| - name: Set the merged PR milestone to current_milestone from release.json | |
| run: | | |
| echo "Setting milestone $MILESTONE to PR $NUMBER." | |
| gh issue edit "$NUMBER" --milestone "$MILESTONE" | |
| env: | |
| GH_TOKEN: ${{ steps.octo-sts.outputs.token }} | |
| NUMBER: ${{ github.event.number }} | |
| MILESTONE: ${{ steps.current-milestone.outputs.MILESTONE }} | |