Skip to content

[Core] --empty flag to to provide a cost-effective way to run a selection of empty models (core Issue #8980) #429

[Core] --empty flag to to provide a cost-effective way to run a selection of empty models (core Issue #8980)

[Core] --empty flag to to provide a cost-effective way to run a selection of empty models (core Issue #8980) #429

# **what?**
# Labels issues autogenerated in dbt-core
# **why?**
# To organize autogenerated issues from dbt-core to make it easier to find and track them.
# **when?**
# When an issue is opened by the FishtownBuildBot
name: Add Labels to Autogenerated Issues
on:
issues:
types: [opened]
jobs:
add_customized_labels:
if: github.event.issue.user.login == 'FishtownBuildBot'
permissions:
issues: write
runs-on: ubuntu-latest
steps:
- name: "Determine appropriate labels by repo in title"
id: repo
env:
ISSUE_TITLE: ${{ github.event.issue.title }}
run: |
if [[ "$ISSUE_TITLE" == *"dbt-core"* ]]; then
echo "labels='content,improvement,dbt Core'" >> $GITHUB_OUTPUT
else
echo "labels='content,improvement,adapters'" >> $GITHUB_OUTPUT
fi
- name: "Add Labels to autogenerated Issues"
id: add-labels
run: |
gh issue edit ${{ github.event.issue.number }} --repo ${{ github.repository }} --add-label ${{ steps.repo.outputs.labels }}
env:
GH_TOKEN: ${{ secrets.DOCS_SECRET }}