[TASK]: update staging and production ingresses #93
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
--- | |
# Automatically adds or removes labels from issues. Can be expanded to | |
# auto label cards and PRs as well. Issue templates are present | |
# however not always used. This will label issues that are missing them. | |
# GitHub recommends pinning actions to a commit SHA. | |
# To get a newer version, you will need to update the SHA. | |
# You can also reference a tag or branch, but the action may change without warning. | |
name: Label Issues | |
# yamllint disable-line rule:truthy | |
on: | |
issues: | |
types: | |
- reopened | |
- opened | |
jobs: | |
label_issues: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
steps: | |
- name: Determine Label | |
run: | | |
TITLE="${{ github.event.issue.title }}" | |
if [[ $TITLE =~ ^\[?[Ff][Ee][Aa][Tt]\]?: ]]; then | |
echo "LABEL=feature" >> $GITHUB_ENV | |
elif [[ $TITLE =~ ^\[?[Tt][Aa][Ss][Kk]\]?: ]]; then | |
echo "LABEL=task" >> $GITHUB_ENV | |
elif [[ $TITLE =~ ^\[?[Bb][Uu][Gg]\]?: ]]; then | |
echo "LABEL=bug" >> $GITHUB_ENV | |
else | |
echo "LABEL=" >> $GITHUB_ENV | |
fi | |
- name: Label issues | |
uses: andymckay/labeler@3a4296e9dcdf9576b0456050db78cfd34853f260 | |
with: | |
add-labels: '${{ env.LABEL }}' | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
ignore-if-labeled: true |