From 5833619b8b1879f72a32565fabc09b7c7476bc55 Mon Sep 17 00:00:00 2001 From: Don Hardman Date: Fri, 31 May 2024 11:52:50 +0700 Subject: [PATCH] Use auto-pr by using new action --- .github/workflows/release.yml | 27 ++++----------------------- 1 file changed, 4 insertions(+), 23 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 221a750..9285a2f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -848,28 +848,9 @@ jobs: - deploy runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 - with: - repository: "manticoresoftware/manticoresearch" - token: ${{ secrets.GITHUB_TOKEN }} - - - name: Update deps.txt - id: deps - run: | - version=${{ needs.vars.outputs.app_version }} - date=${{ needs.vars.outputs.app_date }} - commit=${{ needs.vars.outputs.app_commit }} - - version_string="$version $date $commit" - echo "version_string=${version_string// /-}" >> $GITHUB_OUTPUT - sed -i '/^executor\s/c\executor '"$version_string" deps.txt - - - name: Create Pull Request - uses: peter-evans/create-pull-request@v5 + - name: Update deps + uses: manticoresoftware/manticoresearch/actions/update-deps@master with: + name: executor + version: "${{ needs.vars.outputs.app_version }} ${{ needs.vars.outputs.app_date }} ${{ needs.vars.outputs.app_commit }}" token: ${{ secrets.PR_TOKEN }} - commit-message: "Bump executor version to: ${{ steps.deps.outputs.version_string }}" - title: "Update executor version" - body: "Updating executor version to ${{ steps.deps.outputs.version_string }}" - branch: "update-executor-version" - draft: false