Skip to content

VED-972: Slack Alerts for Id and redis Sync (#1079) #155

VED-972: Slack Alerts for Id and redis Sync (#1079)

VED-972: Slack Alerts for Id and redis Sync (#1079) #155

name: Create Release Tag
on:
push:
branches:
- master
jobs:
create_release:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0 # This causes all history to be fetched, which is required for calculate-version to function
- name: Install Python 3.9
uses: actions/[email protected]
with:
python-version: 3.9
- name: Upgrade python pip
run: python -m pip install --upgrade pip
- name: Install git
run: pip install gitpython
- name: Install semver
run: pip install semver
- name: Set SPEC_VERSION env var
run: echo "SPEC_VERSION=$(python utilities/scripts/calculate_version.py)" >> $GITHUB_ENV
- name: Create release (master only)
id: create-release
if: github.ref == 'refs/heads/master'
uses: actions/create-release@v1
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.SPEC_VERSION }}
release_name: ${{ env.SPEC_VERSION }}