Revert "For EDA 3310" #1279
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: Increment Version | |
on: | |
pull_request: | |
types: [opened] | |
jobs: | |
increment-patch-version: | |
if: github.event.pull_request.head.repo.full_name == github.repository | |
permissions: | |
contents: write | |
pull-requests: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel previous | |
uses: styfle/cancel-workflow-action@0.11.0 | |
with: | |
access_token: ${{ github.token }} | |
- name: ssh-agent | |
uses: webfactory/ssh-agent@v0.7.0 | |
with: | |
ssh-private-key: | | |
${{ secrets.SSH_PRIVATE_KEY_SELF }} | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
ref: ${{ github.event.pull_request.head.ref }} | |
ssh-key: ${{ secrets.SSH_PRIVATE_KEY_SELF }} | |
- name: Increment patch version | |
run: | | |
CURR_VERSION=$(grep "VERSION_PATCH" CMakeLists.txt | grep -Eo '[0-9]*') | |
let "NEW_VERSION=CURR_VERSION+1" | |
sed -i "s/VERSION_PATCH $CURR_VERSION/VERSION_PATCH $NEW_VERSION/g" CMakeLists.txt | |
- name: Commit changes | |
uses: EndBug/add-and-commit@v9.1.4 | |
with: | |
message: 'Incremented patch version' | |
committer_name: GitHub Actions | |
add: 'CMakeLists.txt' |