Skip to content

Commit

Permalink
fix: bmyc workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jgazeau committed Jul 18, 2022
1 parent 248f610 commit d207e68
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/bmyc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Bump thirdparties using Bmyc
on:
workflow_dispatch:
schedule:
- cron: '30 2 * * 1'
env:
Expand Down Expand Up @@ -32,12 +33,14 @@ jobs:
npx bmyc --version
printf "%70s\n" | tr ' ' '-'
npx bmyc --summary-pr ${LOG_FILE}
TEST=${{ hashFiles(env.LOG_FILE) }}
echo "TEST=$TEST"
if [[ $(git status --porcelain | wc -l) -gt 0 && -f ${LOG_FILE} ]];then
git checkout -b ${BRANCH_NAME}
git add -u .
git config --local user.name "GitHub Action"
git config --local user.email "action@github.com"
git commit -m "${PR_TITLE}"
git push -f origin ${BRANCH_NAME}
hub pull-request --file ${LOG_FILE} -l "internal" --base main --head ${BRANCH_NAME}
hub pull-request -f --file ${LOG_FILE} -l "internal" --base main --head ${BRANCH_NAME}
fi

0 comments on commit d207e68

Please sign in to comment.