Bump js-beautify from 1.13.5 to 1.15.1 #49
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: CreateDependabotIssue | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: [opened, reopened] | |
jobs: | |
issue: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
steps: | |
- name: Checks if Dependabot PR | |
if: ${{github.event_name != 'pull_request'}} | |
run: echo "no dependabot" | |
- uses: actions/checkout@v4 | |
if: ${{github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'app/dependabot'}} | |
- name: Open issue if Dependabot PR | |
if: ${{github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'app/dependabot'}} | |
env: | |
pr_title: ${{github.event.pull_request.title}} | |
pr_number: ${{github.event.pull_request.number}} | |
pr_url: ${{github.event.pull_request.url}} | |
run: | | |
title="Dependabot PR $pr_title opened" | |
body="Dependabot has opened PR #$pr_number | |
Link: $pr_url" | |
gh issue create --title "$title" --body "$body" |