test gh actions #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: bm version CI | |
on: | |
push: | |
branches: | |
- "**" | |
paths: | |
- bucket_manager/** | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: set bm version | |
run: | | |
bm_version=$(grep "version" setup.py | awk -F\' '{print $2}' | awk -F\- '{print $1}') | |
git_hash=$(git rev-parse --short "$GITHUB_SHA") | |
sed -i "s/version.*/version='${bm_version}-dev-${git_hash}'/" setup.py | |
- name: commit bm version CI | |
run: | | |
git config --global user.name "github-actions[bot]" | |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git add setup.py | |
git commit -m "bm version: updated to ${bm_version}-dev-${git_hash}" | |
- name: push bm version CI | |
run: | | |
git push |