Skip to content

Commit

Permalink
get version from properties
Browse files Browse the repository at this point in the history
  • Loading branch information
xpenatan committed Jan 10, 2024
1 parent f53ec5b commit 26b791b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,21 @@ jobs:
add-tag:
runs-on: ubuntu-latest
steps:
- uses: madhead/read-java-properties@latest
id: version
with:
file: gradle.properties
property: version
default: 0.0.1

- name: Create Git tag
uses: actions/github-script@v7
with:
script: |
const versionOutputs = ${{ toJSON(steps.version.outputs) }};
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "refs/tags/1.0.0-b9-test",
ref: "refs/tags/${versionOutputs.value}",
sha: context.sha
})
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
libVersion=1.0.0-b9
version=1.0.0-b9

0 comments on commit 26b791b

Please sign in to comment.