Merge pull request #107 from simplerisk/update-20241113 #4
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
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 |