Bump elgohr/Publish-Docker-Github-Action from 4feac4d53e4e55dcc5d3e2ad0ed2e0a76028ff7a to 1c2f28ccd9476e8a936ac9a1f287405504c93304 in the github-actions group #296
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: 'Code Owners' | |
| concurrency: | |
| group: codeowners-${{ github.ref }} | |
| cancel-in-progress: true | |
| on: | |
| pull_request: | |
| branches: [main] | |
| types: [opened, reopened, synchronize, ready_for_review, labeled, unlabeled] | |
| permissions: | |
| contents: read # required for @actions/checkout | |
| issues: write # required to create comments | |
| pull-requests: write # required to request reviewers | |
| checks: write # required to export data to check run | |
| jobs: | |
| codeowners: | |
| name: 'Run Codeowners Plus' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 'Checkout Code Repository' | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: 'Update action.yml to build locally' | |
| run: | | |
| sed -i "s/image: .*/image: 'Dockerfile'/" action.yml | |
| cat action.yml | |
| - name: 'Codeowners Plus' | |
| id: codeowners-plus | |
| uses: ./ | |
| with: | |
| github-token: '${{ secrets.GITHUB_TOKEN }}' | |
| pr: '${{ github.event.pull_request.number }}' | |
| verbose: true | |
| quiet: ${{ github.event.pull_request.draft }} | |
| - name: Create Check Run with JSON Output | |
| if: always() | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| JSON_PAYLOAD='{ | |
| "name": "Codeowners Plus Report", | |
| "head_sha": "${{ github.event.pull_request.head.sha }}", | |
| "status": "completed", | |
| "conclusion": "success", | |
| "output": { | |
| "title": "Codeowners Plus Report", | |
| "summary": "Codeowners Plus analysis JSON data including file owners and results", | |
| "text": ${{ toJSON(steps.codeowners-plus.outputs.data) }} | |
| } | |
| }' | |
| # Use the 'gh' CLI to interact with the GitHub API | |
| echo "$JSON_PAYLOAD" | gh api --method POST \ | |
| -H "Accept: application/vnd.github+json" \ | |
| -H "X-GitHub-Api-Version: 2022-11-28" \ | |
| "/repos/${{ github.repository }}/check-runs" \ | |
| --input - |