Merge pull request #96 from edenlabllc/feature/FFS-3456-fix-github-re… #472
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 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 }} "" |