Skip to content

Adds inhand sprites to med, chem, and surgery books #31523

Adds inhand sprites to med, chem, and surgery books

Adds inhand sprites to med, chem, and surgery books #31523

Workflow file for this run

name: Labeling and Verification
on:
pull_request_target:
types: [opened, reopened, synchronize, edited]
jobs:
label:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: "Check for ACTION_ENABLER secret and pass true to output if it exists to be checked by later steps"
id: value_holder
env:
ENABLER_SECRET: ${{ secrets.ACTION_ENABLER }}
run: |
unset SECRET_EXISTS
if [ -n "$ENABLER_SECRET" ]; then SECRET_EXISTS=true ; fi
echo "ACTIONS_ENABLED=$SECRET_EXISTS" >> $GITHUB_OUTPUT
- name: Generate App Token
id: app-token-generation
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Get The Script
if: steps.value_holder.outputs.ACTIONS_ENABLED
run: |
wget "https://raw.githubusercontent.com/${{ github.repository }}/master/.github/add_labels.py"
- name: Work around setup-python cache issue
# see https://github.com/actions/setup-python/issues/807
if: hashFiles('**/requirements.txt', '**/pyproject.toml') == ''
shell: bash
run: touch requirements.txt
- name: Set up Python
if: steps.value_holder.outputs.ACTIONS_ENABLED
uses: actions/setup-python@v6
with:
python-version: 3.8
cache: 'pip'
- name: Install dependencies
if: steps.value_holder.outputs.ACTIONS_ENABLED
run: |
python -m pip install --upgrade pip
python -m pip install pygithub
sudo apt-get install dos2unix
- name: Add and verify labels
if: steps.value_holder.outputs.ACTIONS_ENABLED
run: |
python add_labels.py
env:
REPO: ${{ github.repository }}
TOKEN: ${{ steps.app-token-generation.outputs.token }}
PR_NUMBER: ${{ github.event.number }}
- name: size-label
if: steps.value_holder.outputs.ACTIONS_ENABLED
uses: "pascalgn/size-label-action@v0.5.5"
env:
GITHUB_TOKEN: ${{ steps.app-token-generation.outputs.token }}
IGNORED: "**/bun.lock"
with:
sizes: >
{
"0": "XS",
"20": "S",
"50": "M",
"200": "L",
"800": "XL",
"2000": "XXL"
}