openstack: handle when metadata service returns empty data #4
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
| # Maintained in https://github.com/coreos/repo-templates | |
| # Do not edit downstream. | |
| name: PR Gating Action | |
| on: | |
| issue_comment: | |
| types: [created] | |
| pull_request: | |
| types: [opened, labeled, unlabeled] | |
| jobs: | |
| handle-event: | |
| if: >- | |
| github.event_name == 'pull_request' || | |
| (github.event_name == 'issue_comment' && github.event.issue.pull_request) | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: write | |
| contents: write | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v6 | |
| - name: Run Owners Action | |
| uses: coreos/[email protected] | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| owners-file: "OWNERS" | |
| env: | |
| AUTO_MERGE: false | |
| MERGE_STRATEGY: merge | |
| AUTO_ASSIGN_REVIEWERS: 2 | |
| AUTO_ASSIGN_APPROVERS: 1 |