-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6fe0a08
commit 482e3d5
Showing
1 changed file
with
3 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,20 @@ | ||
name: Version Bump | ||
name: Auto Dev Version Bumper | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
permissions: | ||
contents: write # Grants necessary write permissions to the token for git push and tag operations | ||
|
||
jobs: | ||
bump_version: | ||
version-bump: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Step 1: Checkout repository with GITHUB_TOKEN | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.GITHUB_TOKEN }} # Ensures git push and tag operations are authenticated | ||
|
||
# Step 2: Run the auto-dev-version-bumper action in Docker | ||
- name: Run auto-dev-version-bumper | ||
uses: LorenzoMugnai/auto-dev-version-bumper@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Pass GITHUB_TOKEN explicitly | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |