aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2021-07-26 11:25:32 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2021-07-26 11:25:32 +0200
commit45968ad740d3d060592adb37d8a378e602c7522b (patch)
treee8dc6722b5d817bc6428d7a1cb63765fafabe274 /.github
parent987fca5297d4e3290df64b7a54a3af9b6ddf11d9 (diff)
downloadyosys-45968ad740d3d060592adb37d8a378e602c7522b.tar.gz
yosys-45968ad740d3d060592adb37d8a378e602c7522b.tar.bz2
yosys-45968ad740d3d060592adb37d8a378e602c7522b.zip
Add version bump workflow
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/version.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml
new file mode 100644
index 000000000..0cd66875c
--- /dev/null
+++ b/.github/workflows/version.yml
@@ -0,0 +1,31 @@
+name: Bump version
+
+on:
+ workflow_dispatch:
+ schedule:
+ - cron: '0 0 * * *'
+
+jobs:
+ bump-version:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
+ - name: Take last commit
+ id: log
+ run: echo "::set-output name=message::$(git log --no-merges -1 --oneline)"
+ - name: Bump version
+ if: "!contains(steps.log.outputs.message, 'Bump version')"
+ run: |
+ make bumpversion
+ git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
+ git config --local user.name "github-actions[bot]"
+ git add Makefile
+ git commit -m "Bump version"
+ - name: Push changes # push the output folder to your repo
+ if: "!contains(steps.log.outputs.message, 'Bump version')"
+ uses: ad-m/github-push-action@master
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}