Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
mazaheriMahdi committed Nov 22, 2024
1 parent a21397a commit e26b67f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Use the output from the `hello` step
- name: latest tag
run: echo "The Latest version ${{ steps.hello.outputs.tag }}"
run: echo "The Latest version ${{ steps.tag.outputs.tag }}"

2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const core = require('@actions/core');
const newTag = `v${major}.${minor}.${patch + 1}`;
console.log(`New tag: ${newTag}`);

execSync(`git tag -fa latest`);

execSync(`git tag ${newTag}`);
core.setOutput("tag", newTag)
execSync(`git push origin --tags`);
Expand Down

0 comments on commit e26b67f

Please sign in to comment.