Skip to content

Commit

Permalink
Git push
Browse files Browse the repository at this point in the history
  • Loading branch information
eversC committed Mar 28, 2024
1 parent 98feac2 commit d5b32ec
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/update_dependabot_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
workflow_dispatch:

jobs:
ci_block:
update_branch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -15,4 +15,7 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
run: |
pr_number=$(gh pr list -S 'author:app/dependabot' --json number -q '.[0].number')
gh pr view $pr_number --json headRefName -q '.headRefName'
branch_name=gh pr view $pr_number --json headRefName -q '.headRefName'
git checkout $branch_name
git commit --allow-empty -m "Empty commit to force CI/CD"
git push origin $branch_name

0 comments on commit d5b32ec

Please sign in to comment.