chore(main): release 1.14.0 #488
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: PR Update | |
| # Update permissions to include all necessary ones | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| actions: read | |
| checks: write | |
| id-token: write | |
| on: | |
| pull_request: | |
| merge_group: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| name: Run Linters | |
| uses: ./.github/workflows/lint.yml | |
| secrets: inherit | |
| build: | |
| name: Build | |
| uses: ./.github/workflows/build.yml | |
| secrets: inherit | |
| required: | |
| name: PR Check Summary | |
| needs: [lint, build] | |
| if: always() | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| checks: write | |
| statuses: write | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 | |
| with: | |
| egress-policy: audit | |
| - name: fail if conditional jobs failed | |
| if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'skipped') || contains(needs.*.result, 'cancelled') | |
| run: exit 1 | |
| dependabot: | |
| runs-on: ubuntu-latest | |
| name: Auto-merge Dependabot PRs | |
| if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'kopexa-grc/docs' | |
| needs: [required] | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 | |
| with: | |
| egress-policy: audit | |
| - name: Dependabot metadata | |
| id: metadata | |
| uses: dependabot/fetch-metadata@08eff52bf64351f401fb50d4972fa95b9f2c2d1b | |
| with: | |
| github-token: "${{ secrets.GITHUB_TOKEN }}" | |
| - name: Approve PR | |
| if: | | |
| steps.meta.outputs.update-type == 'version-update:semver-patch' || | |
| steps.meta.outputs.update-type == 'version-update:semver-minor' | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| PR_URL: ${{ github.event.pull_request.html_url }} | |
| run: gh pr review "$PR_URL" --approve | |
| - name: Enable auto-merge (squash) | |
| if: contains(steps.metadata.outputs.dependency-names, 'my-dependency') && (steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.meta.outputs.update-type == 'version-update:semver-minor') | |
| run: gh pr merge --auto --merge "$PR_URL" | |
| env: | |
| PR_URL: ${{github.event.pull_request.html_url}} | |
| GH_TOKEN: ${{secrets.GITHUB_TOKEN}} |