Skip to content

Release Commit

Release Commit #7

name: Release Commit
on:
workflow_dispatch:
inputs:
version_name:
description: "Number of the version of the RDM to release"
required: true
type: string
jobs:
release_commit:
runs-on: ubuntu-latest
env:
CI_COMMIT_MESSAGE: "New RDM release: ${{inputs.version_name}}"
CI_COMMIT_AUTHOR: Continuous Integration
steps:
- name: checkhout
uses: actions/checkout@v3
- name: Create release
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: |
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email "github-actions@github.com"
echo "Commit Empty"
git commit -m "$CI_COMMIT_MESSAGE" --allow-empty
echo "Commit Tag"
git tag "${{inputs.version_name}}" -m "$CI_COMMIT_MESSAGE" --sign
git push