Cleanup workers-shared
types
#1716
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: Holopin | |
on: | |
pull_request_target: | |
types: | |
- closed | |
- labeled | |
jobs: | |
issue_lava_lamp_holobyte: | |
name: Issue Lava Lamp Holobyte | |
runs-on: ubuntu-22.04 | |
if: ${{ github.event.pull_request.merged }} | |
steps: | |
- id: check_if_contributor_is_external | |
name: Check if contributor is external | |
run: 'curl --write-out ''%{http_code}'' --silent --output /dev/null -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ env.GH_TOKEN }}" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/orgs/cloudflare/members/${{ github.event.pull_request.user.login }} | grep -q ''204'' && echo "is_external=false" >> $GITHUB_OUTPUT || echo "is_external=true" >> $GITHUB_OUTPUT' | |
env: | |
GH_TOKEN: ${{ secrets.HOLOPIN_LABELER }} | |
- name: Issue Lava Lamp Holobyte | |
run: gh pr edit "$NUMBER" --add-label "$LABELS" | |
if: steps.check_if_contributor_is_external.outputs.is_external == 'true' | |
env: | |
GH_TOKEN: ${{ secrets.HOLOPIN_LABELER }} | |
GH_REPO: ${{ github.repository }} | |
NUMBER: ${{ github.event.pull_request.number }} | |
LABELS: contribution | |
issue_global_contribution_badge: | |
name: Issue Global Contribution badge | |
runs-on: ubuntu-22.04 | |
if: github.event.label.name == 'outstanding contribution' | |
steps: | |
- name: Issue Global Contribution badge | |
run: gh pr edit "$NUMBER" --add-label "$LABELS" | |
env: | |
GH_TOKEN: ${{ secrets.HOLOPIN_LABELER }} | |
GH_REPO: ${{ github.repository }} | |
NUMBER: ${{ github.event.pull_request.number }} | |
LABELS: "[automation] outstanding contribution" |