From 9b548961b925ca3e2952c99b4ff059e96adb9c92 Mon Sep 17 00:00:00 2001 From: Hu Ji <669898595@qq.com> Date: Sun, 3 Sep 2023 21:17:39 +0800 Subject: [PATCH] update workflows --- .github/workflows/python-publish.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 1d79343f..a28c960b 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -20,6 +20,9 @@ jobs: runs-on: ubuntu-latest + permissions: + contents: write + steps: - uses: actions/checkout@v3 - name: Set up Python @@ -54,12 +57,15 @@ jobs: user: __token__ password: ${{ secrets.PYPI_API_TOKEN }} packages_dir: dist/ - - name: Commit and push changes + - name: Commit files run: | - git config --global user.name '$GITHUB_REPOSITORY_OWNER' - git config --global user.email '$GITHUB_REPOSITORY_OWNER@github.com' - git checkout -b master + git config user.name github-actions + git config user.email github-actions@github.com git add src/linktools/assets/frida.js git add src/linktools/assets/android-tools.json src/linktools/assets/android-tools.apk git commit -m "Auto commit artifacts (${{ steps.previoustag.outputs.tag }})" - git push origin HEAD:master + - name: Push changes + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: master