Skip to content

Commit

Permalink
manual bump
Browse files Browse the repository at this point in the history
  • Loading branch information
vicmassy committed Nov 13, 2023
1 parent 690721d commit 16303c5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/bump_and_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
elif [[ ${{ github.ref_name }} == "dev" ]]; then
echo "BUMP=patch" >> $GITHUB_ENV
fi
sudo apt update
sudo apt install -y npm
npm install semver
- name: Bump version and push tag
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/tag_and_push_docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ jobs:
elif [[ ${{ github.ref_name }} == "dev" ]]; then
echo "BUMP=patch" >> $GITHUB_ENV
fi
sudo apt update
sudo apt install -y npm
npm install semver
- name: Bump version
Expand Down
13 changes: 13 additions & 0 deletions bump-action/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const core = require("@actions/core");
const exec = require("@actions/exec");

async function run() {
try {
// Execute bash script
await exec.exec(`${__dirname}/bump-version.sh`);
} catch (error) {
core.setFailed(error.message);
}
}

run();

0 comments on commit 16303c5

Please sign in to comment.