Initial commit #1
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: labels | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '.github/labels.yml' | |
- '.github/workflows/labels.yml' | |
jobs: | |
labeler: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v2 | |
- | |
name: Run Labeler | |
uses: crazy-max/ghaction-github-labeler@v3 | |
# The following job will delete the script that creates dev and testing branches | |
- uses: actions/checkout@v2 | |
- run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "vleadadmin" | |
git checkout main | |
git rm -rf .github/workflows/labels.yml | |
git commit -m "Label script is deleted." | |
- uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.ORG_OWNER_GITHUB_TOKEN }} | |
force: true | |
branch: main |