Skip to content

Commit

Permalink
ci: rename workflow jobs (#2557)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdehaven authored Jan 6, 2025
1 parent 2198640 commit b492aee
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/pr-on-close.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: On PR close
on:
pull_request:
types: ['closed']

jobs:
remove-pr-preview-comment:
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
name: Remove PR preview comment from PR
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN_PUBLIC_PUBLISH }}
steps:
- name: Checkout Source Code
uses: actions/checkout@v4

- name: Remove preview consumption comment
uses: marocchino/sticky-pull-request-comment@v2
with:
header: pr_preview_consumption
delete: true
GITHUB_TOKEN: ${{ secrets.KONGPONENTS_BOT_PAT }}
24 changes: 24 additions & 0 deletions .github/workflows/renovate-auto-approve.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Renovate Bot dependency updates PR auto-merge

permissions:
pull-requests: write
contents: write

on:
pull_request:
types: ['opened']

jobs:
renovate-autoapprove:
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
runs-on: ubuntu-latest
# Do not auto-approve branches `alpha` or `beta`
if: github.actor == 'renovate[bot]' && !contains(github.head_ref || github.ref_name, 'alpha') && !contains(github.head_ref || github.ref_name, 'beta')
steps:
- name: Approve a PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
# Use the bot account PAT to allow auto-approve and merge the PRs
GITHUB_TOKEN: ${{ secrets.KONGPONENTS_BOT_PAT }}

0 comments on commit b492aee

Please sign in to comment.