🌱 Update github-actions group #4768
This file contains 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: Verify Pull Request | |
on: # yamllint disable-line rule:truthy | |
pull_request_target: | |
types: [opened, edited, synchronize, reopened, ready_for_review] | |
# yamllint disable rule:line-length | |
jobs: | |
pr-verify: | |
runs-on: ubuntu-latest | |
name: Verify Pull Request | |
if: github.event_name != 'pull_request_target' || !github.event.pull_request.draft | |
steps: | |
- name: Verifier action | |
id: verifier | |
uses: kubernetes-sigs/kubebuilder-release-tools@012269a88fa4c034a0acf1ba84c26b195c0dbab4 # v0.4.3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Checkout repository | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Verify Boilerplate | |
run: make verify-boilerplate | |
- name: Verify Shellcheck | |
run: make verify-shellcheck | |
- name: Verify Starlark | |
run: make verify-starlark | |
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4 | |
with: | |
node-version: "18" | |
- name: Install renovate | |
run: npm i -g [email protected] # TODO update this via renovatebot | |
- name: Validate config | |
run: | | |
for file in $(find . -name "*.json5"); do | |
renovate-config-validator ${file} | |
done | |
- name: Generate Token | |
uses: actions/create-github-app-token@31c86eb3b33c9b601a1f60f98dcbfd1d70f379b4 # v1 | |
id: generate-token | |
with: | |
app-id: ${{ secrets.SYSELF_APP_ID }} | |
private-key: ${{ secrets.SYSELF_APP_PRIVATE_KEY }} | |
- name: Generate Size | |
uses: pascalgn/size-label-action@bbbaa0d5ccce8e2e76254560df5c64b82dac2e12 # v0.5.2 | |
env: | |
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }} | |
with: | |
sizes: > | |
{ | |
"0": "XS", | |
"20": "S", | |
"50": "M", | |
"200": "L", | |
"800": "XL", | |
"2000": "XXL" | |
} | |
- name: Generate Labels | |
uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5 | |
with: | |
configuration-path: .github/labeler.yaml | |
repo-token: ${{ steps.generate-token.outputs.token }} | |
- name: Sync Labels | |
uses: EndBug/label-sync@52074158190acb45f3077f9099fea818aa43f97a # v2 | |
with: | |
config-file: .github/labels.yaml | |
token: ${{ steps.generate-token.outputs.token }} |