Skip to content

Commit 2f71768

Browse files
authored
Update update-version.yml
1 parent dcc4179 commit 2f71768

1 file changed

Lines changed: 6 additions & 13 deletions

File tree

.github/workflows/update-version.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@ name: Update Version
44

55
# Controls when the workflow will run
66
on:
7-
# Triggers the workflow on push or pull request events but only for the main branch
8-
push:
9-
branches: [ main ]
10-
pull_request:
11-
branches: [ main ]
12-
137
# Allows you to run this workflow manually from the Actions tab
148
workflow_dispatch:
159

@@ -23,13 +17,12 @@ jobs:
2317
# Steps represent a sequence of tasks that will be executed as part of the job
2418
steps:
2519
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
26-
- name: Checkout Code
27-
uses: actions/checkout@v2
28-
with:
29-
ref: ${{ github.head_ref }} # checkout the correct branch name
30-
fetch-depth: 0 # fetch the whole repo history
31-
32-
- name: Git Version
20+
- name: Bump version
21+
uses: remorses/bump-version@js
22+
with:
23+
version_file: ./VERSION
24+
github_token: ${{ secrets.GITHUB_TOKEN }}
25+
- name: Git Version
3326
uses: codacy/git-version@2.4.0
3427
with:
3528
release-branch: main

0 commit comments

Comments
 (0)