workflows/update-manpage: fix issue
This commit is contained in:
parent
53f34af1c5
commit
e6bc1f9b1c
4
.github/workflows/update-manpage.yml
vendored
4
.github/workflows/update-manpage.yml
vendored
@ -10,6 +10,7 @@ on:
|
|||||||
- Library/Homebrew/completions/**
|
- Library/Homebrew/completions/**
|
||||||
- Library/Homebrew/manpages/**
|
- Library/Homebrew/manpages/**
|
||||||
- Library/Homebrew/cli/parser.rb
|
- Library/Homebrew/cli/parser.rb
|
||||||
|
- Library/Homebrew/completions.rb
|
||||||
- Library/Homebrew/env_config.rb
|
- Library/Homebrew/env_config.rb
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
@ -40,7 +41,7 @@ jobs:
|
|||||||
|
|
||||||
if git ls-remote --exit-code --heads origin "$BRANCH"; then
|
if git ls-remote --exit-code --heads origin "$BRANCH"; then
|
||||||
git checkout "$BRANCH"
|
git checkout "$BRANCH"
|
||||||
git reset origin/master
|
git reset --hard origin/master
|
||||||
else
|
else
|
||||||
git checkout -B "$BRANCH" origin/master
|
git checkout -B "$BRANCH" origin/master
|
||||||
BRANCH_EXISTS="1"
|
BRANCH_EXISTS="1"
|
||||||
@ -72,6 +73,7 @@ jobs:
|
|||||||
token: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
|
token: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
|
||||||
branch: ${{ steps.update.outputs.branch }}
|
branch: ${{ steps.update.outputs.branch }}
|
||||||
force: true
|
force: true
|
||||||
|
origin_branch: "master"
|
||||||
|
|
||||||
- name: Open a pull request
|
- name: Open a pull request
|
||||||
if: steps.update.outputs.pull_request == 'true'
|
if: steps.update.outputs.pull_request == 'true'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user