minor fixes #415
Workflow file for this run
This file contains hidden or 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: GitLab flow action CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - feature/* | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| VERSION: v2 | |
| jobs: | |
| gitlabflow: | |
| name: Checkout main and gitlabflow action repositories, run gitlabflow 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 action | |
| run: | | |
| ./release-service.sh ${{ env.VERSION }} ${{ env.GIT_BRANCH }} ${{ env.GITHUB_SHA }} "" |