Skip to content

Commit

Permalink
fix auto updater (#887)
Browse files Browse the repository at this point in the history
* fix auto updater

* fix typo

* enable auto fill

* fetch all
  • Loading branch information
shogo82148 committed Oct 20, 2021
1 parent bbc0de4 commit 16af6df
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/update-carton.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
uses: actions/checkout@v2
with:
token: ${{ steps.generate_token.outputs.token }}
ref: main
fetch-depth: 0

- name: update cpanfile.snapshot
run: make update
Expand All @@ -52,4 +54,5 @@ jobs:
git add .
git commit -m "Update carton $(date +"%Y-%m-%d %H:%M:%S")" || exit 0
git push -u origin "$branch"
gh pr create --title "Auto Update carton" --base main -head "$branch"
gh pr create --fill --title "Auto Update carton" --base main --head "$branch" \
--body "This PR is auto generated by [${{ github.workflow }} workflow](${{ github.server_url }}/${{ github.repository }}/workflows/update-carton.yml)."
5 changes: 4 additions & 1 deletion .github/workflows/update-cpanm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
uses: actions/checkout@v2
with:
token: ${{ steps.generate_token.outputs.token }}
ref: main
fetch-depth: 0

- name: update cpanfile.snapshot
run: make update
Expand All @@ -52,4 +54,5 @@ jobs:
git add .
git commit -m "Update cpanm $(date +"%Y-%m-%d %H:%M:%S")" || exit 0
git push -u origin $branch
gh pr create --title "Auto Update cpanm" --base main -head "$branch"
gh pr create --fill --title "Auto Update cpanm" --base main --head "$branch" \
--body "This PR is auto generated by [${{ github.workflow }} workflow](${{ github.server_url }}/${{ github.repository }}/workflows/update-cpanm.yml)."
5 changes: 4 additions & 1 deletion .github/workflows/update-cpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
uses: actions/checkout@v2
with:
token: ${{ steps.generate_token.outputs.token }}
ref: main
fetch-depth: 0

- name: update cpanfile.snapshot
run: make update
Expand All @@ -52,4 +54,5 @@ jobs:
git add .
git commit -m "Update cpm $(date +"%Y-%m-%d %H:%M:%S")" || exit 0
git push -u origin $branch
gh pr create --title "Auto Update cpm" --base main -head "$branch"
gh pr create --fill --title "Auto Update cpm" --base main --head "$branch" \
--body "This PR is auto generated by [${{ github.workflow }} workflow](${{ github.server_url }}/${{ github.repository }}/workflows/update-cpm.yml)."

0 comments on commit 16af6df

Please sign in to comment.