-
-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (27 loc) 路 876 Bytes
/
Copy pathversion-update.yml
File metadata and controls
31 lines (27 loc) 路 876 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Version Update
on:
push:
tags:
- '*.**'
jobs:
update-version:
name: Update VERSION
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
ref: master
fetch-depth: 0
- name: Edit version.txt
run: echo "VERSION = \"$(git describe --tags `git rev-list --tags --max-count=1`)\"" > version.txt
- name: Commit update
uses: stefanzweifel/git-auto-commit-action@v7
with:
branch: master
skip_dirty_check: true
commit_message: "docs: updates on VERSION\n\n Added information on VERSION to repository"
commit_options: '--no-verify --signoff'
commit_user_name: GitHub Bot
commit_user_email: github-actions@nullables.io
commit_author: GitHub Bot <github-actions@nullables.io>