Skip to content

Commit

Permalink
Update deps.txt of manticoresearch with a custom action
Browse files Browse the repository at this point in the history
  • Loading branch information
donhardman committed May 16, 2024
1 parent ce6c5d3 commit b8ba632
Showing 1 changed file with 4 additions and 25 deletions.
29 changes: 4 additions & 25 deletions .github/workflows/pack_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,34 +221,13 @@ jobs:
echo "app_commit=$commit" >> $GITHUB_OUTPUT
update-manticoresearch-deps:
name: Updating deps of manticoresearch
needs:
- vars
runs-on: ubuntu-22.04
steps:
- name: Checkout manticoresearch
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 '/^mcl\s/c\mcl '"$version_string" deps.txt
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
- name: Update deps
uses: manticoresoftware/manticoresearch/actions/update-deps
with:
name: columnar
version: "${{ needs.vars.outputs.app_version }} ${{ needs.vars.outputs.app_date }} ${{ needs.vars.outputs.app_commit }}"
token: ${{ secrets.PR_TOKEN }}
commit-message: "Bump columnar version to: ${{ steps.deps.outputs.version_string }}"
title: "Update columnar version"
body: "Updating columnar version to ${{ steps.deps.outputs.version_string }}"
branch: "update-columnar-version"
draft: false

0 comments on commit b8ba632

Please sign in to comment.