Fix dubious ownership #5
This file contains hidden or 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: HyperCPU CI/CD Pipeline (version incrementing) | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| versioning-patch-increment: | |
| runs-on: ubuntu-latest | |
| container: hyperwin/hcpu-ci:debian-unstable | |
| if: "contains(github.event.head_commit.message, '[ci patch inc]')" | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: '0' | |
| - name: Setup git user | |
| uses: fregante/setup-git-user@v1 | |
| - name: Increment version | |
| run: | | |
| scripts/increment_patch.sh | |
| - name: Push changes to master branch | |
| run: | | |
| git config --global --add safe.directory '*' | |
| git add . | |
| git commit -m "[auto]: Increment patch version" | |
| git push origin master | |
| versioning-minor-increment: | |
| runs-on: ubuntu-latest | |
| container: hyperwin/hcpu-ci:debian-unstable | |
| if: "contains(github.event.head_commit.message, '[ci minor inc]')" | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: '0' | |
| - name: Setup git user | |
| uses: fregante/setup-git-user@v1 | |
| - name: Increment version | |
| run: | | |
| scripts/increment_minor.sh | |
| - name: Push changes to master branch | |
| run: | | |
| git config --global --add safe.directory '*' | |
| git add . | |
| git commit -m "[auto]: Increment minor version" | |
| git push origin master | |