Skip to content

Merge pull request #105 from simplerisk/docs #2

Merge pull request #105 from simplerisk/docs

Merge pull request #105 from simplerisk/docs #2

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