Skip to content

ci: small improvements #5

ci: small improvements

ci: small improvements #5

Workflow file for this run

name: Check Labels
on:
pull_request:
jobs:
check-labels:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch all history for all branches
- name: Detect Changes
id: detect
run: |
git fetch origin main
CHANGED_FILES=$(git diff --name-only origin/main...HEAD)
echo "Changed files: $CHANGED_FILES"
if echo "$CHANGED_FILES" | grep -q '^packages/std/'; then
echo "std_changed=true" >> $GITHUB_ENV
else
echo "std_changed=false" >> $GITHUB_ENV
fi
- name: Add Std Label
if: env.std_changed == 'true'
uses: actions-ecosystem/action-add-labels@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
labels: packages/std