Skip to content

Commit

Permalink
[CI] Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
aicorein committed Oct 13, 2024
1 parent bc1fa4f commit 44c3527
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/make_doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ jobs:
mv tmp-files/* tmp-files/.git tmp-files/.nojekyll gh-pages
rmdir tmp-files
cd gh-pages
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git config --local user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"
git config --local user.name "${{ github.actor }}"
git add .
git commit -m "Update doc by Github Action" -a || true
cd ..
Expand Down
41 changes: 35 additions & 6 deletions .github/workflows/update_deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,40 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Update dependencies
uses: pdm-project/update-deps-action@main
- name: Setup pdm
uses: pdm-project/setup-pdm@v4

- name: "Update dependencies"
run: echo "SUMMARY='$(pdm update)'" >> $GITHUB_OUTPUT
shell: bash
id: pdm-update

- id: detect-changes
shell: bash
run: |
if [[ `git status --porcelain` ]]; then
echo "changed=true" >> $GITHUB_OUTPUT
else
echo "changed=false" >> $GITHUB_OUTPUT
fi
- name: Create Pull Request
if: steps.detect-changes.outputs.changed == 'true'
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "[CI] Auto update dependencies"
pr-title: "[CI] Update dependencies"
install-plugins: "false"
sign-off-commit: "false"
sign-commits: true
branch: action/update-deps
delete-branch: true
title: "[CI] Update dependencies"
body: |
## Update summary
```shell
${{ steps.pdm-update.outputs.SUMMARY }}
```
*Auto-generated by dependencies update action*
labels: |
automated pr
draft: false

0 comments on commit 44c3527

Please sign in to comment.