Skip to content

Merge pull request #96 from edenlabllc/feature/FFS-3456-fix-github-re… #472

Merge pull request #96 from edenlabllc/feature/FFS-3456-fix-github-re…

Merge pull request #96 from edenlabllc/feature/FFS-3456-fix-github-re… #472

Workflow file for this run

name: GitLab flow action CI
on:
push:
branches:
- master
- feature/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: v2
jobs:
gitlabflow:
name: Checkout and run action
runs-on: ubuntu-22.04
steps:
- name: Initialize environment variables
run: |
GIT_BRANCH="${GITHUB_REF#refs/heads/}"
if [[ "master" != "${GIT_BRANCH}" ]]; then
VERSION="${VERSION}-develop"
fi
echo "GIT_BRANCH=${GIT_BRANCH}" >> ${GITHUB_ENV}
echo "VERSION=${VERSION}" >> ${GITHUB_ENV}
- name: Checkout main repository
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: Release GitHub Action
run: |
./release-service.sh ${{ env.VERSION }} ${{ env.GIT_BRANCH }} ${{ env.GITHUB_SHA }} ""