-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from simplerisk/docs
Fixing docs/add action to create tags on the repository
- Loading branch information
Showing
5 changed files
with
32 additions
and
7 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Create new release tag | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
create-release: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Configure git | ||
run: | | ||
git config user.name "SimpleRisk Updater" | ||
git config user.email "[email protected]" | ||
git config push.followTags true | ||
git fetch --tags | ||
- name: Check if tag does not exist, and generate/push one | ||
run: | | ||
TAG_NAME=$(grep "/tmp/version" simplerisk-minimal/php81/Dockerfile | cut -d ' ' -f 6) | ||
if ! git rev-parse "$TAG_NAME" >/dev/null 2>&1; then | ||
git tag -a $TAG_NAME -m "SimpleRisk $TAG_NAME Release" | ||
fi | ||
git push --tags |
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
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
File renamed without changes.
File renamed without changes.