resourceIdentity: add d.Identity to Create and Update to cover new validation in sdk/v2 - 2.28.1
#78780
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: request-reviewer | |
| permissions: read-all | |
| on: | |
| pull_request_target: | |
| types: | |
| - opened | |
| - ready_for_review | |
| - reopened | |
| - synchronize | |
| issue_comment: | |
| types: | |
| - created | |
| jobs: | |
| request-review: | |
| if: (github.event.action == 'created' && github.event.issue.state == 'open' && github.event.issue.draft == false && github.event.comment.user.login == github.event.issue.user.login) || (github.event.action != 'created' && github.event.pull_request.state == 'open' && github.event.pull_request.draft == false ) | |
| runs-on: ubuntu-22.04 | |
| permissions: | |
| pull-requests: write | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.2 | |
| with: | |
| ref: main | |
| - name: Set up Go | |
| uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 | |
| with: | |
| go-version: '^1.24' | |
| # Disable caching for now due to issues with large provider dependency caches | |
| cache: false | |
| - name: Build magician | |
| run: | | |
| cd .ci/magician | |
| go build . | |
| - name: Request reviewer | |
| if: ${{ (github.event.action == 'created' && github.event.issue.user.login != 'copybara-service') || (github.event.action != 'created' && github.event.pull_request.user.login != 'copybara-service') }} | |
| run: .ci/magician/magician request-reviewer ${{ github.event.pull_request.number || github.event.issue.number }} | |
| - name: Request reviewer (copybara) | |
| if: ${{ github.event.issue.user.login == 'copybara-service' || github.event.pull_request.user.login == 'copybara-service' }} | |
| env: | |
| GH_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
| run: gh pr edit ${{ github.event.pull_request.number || github.event.issue.number }} --add-reviewer "@melinath" |