Bump scripts from 522c0b0 to 8524240
#151
Workflow file for this run
This file contains hidden or 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: Dependabot Auto-Label | |
| on: | |
| pull_request: | |
| types: [opened, labeled] | |
| branches: [master] | |
| paths: | |
| - deps/openvic-dataloader | |
| - deps/lexy-vdf | |
| - scripts | |
| permissions: | |
| pull-requests: write | |
| issues: write | |
| jobs: | |
| dependabot: | |
| runs-on: ubuntu-latest | |
| if: github.event.pull_request.user.login == 'dependabot[bot]' | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Dependabot metadata | |
| id: metadata | |
| uses: dependabot/fetch-metadata@v2 | |
| with: | |
| github-token: "${{ secrets.GITHUB_TOKEN }}" | |
| - name: Add custom labels based on dependency name | |
| run: | | |
| DEPENDENCY_NAME="${{ steps.metadata.outputs.dependency-names }}" | |
| PR_URL="${{ github.event.pull_request.html_url }}" | |
| if [[ "$DEPENDENCY_NAME" == "deps/openvic-dataloader" ]]; then | |
| gh pr edit "$PR_URL" --add-label "topic:dataloader" | |
| elif [[ "$DEPENDENCY_NAME" == "deps/lexy-vdf" ]]; then | |
| gh pr edit "$PR_URL" --add-label "topic:dataloader" | |
| elif [[ "$DEPENDENCY_NAME" == "scripts" ]]; then | |
| gh pr edit "$PR_URL" --add-label "topic:buildsystem" | |
| fi | |
| env: | |
| GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |