Skip to content

Commit

Permalink
attempt to get version
Browse files Browse the repository at this point in the history
  • Loading branch information
xpenatan committed Jan 10, 2024
1 parent 79ec587 commit 1295569
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: madhead/read-java-properties@latest
id: version
with:
file: gradle.properties
file: "./gradle.properties"
property: version
default: 0.0.1

Expand All @@ -22,9 +22,15 @@ jobs:
with:
script: |
const versionOutputs = ${{ toJSON(steps.version.outputs) }};
var version = versionOutputs.value;
console.log("Version: " + version);
var ref = "refs/tags/" + version
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "refs/tags/${versionOutputs.value}",
ref: ref,
sha: context.sha
})
});

0 comments on commit 1295569

Please sign in to comment.