From 1b84ed759da22476e8d3f9c4e2f79293166967b8 Mon Sep 17 00:00:00 2001 From: giles Date: Sat, 21 Oct 2023 20:08:31 +0100 Subject: [PATCH] subst --- .gitea/workflows/convert-to-yml.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/convert-to-yml.yml b/.gitea/workflows/convert-to-yml.yml index 167f584..8fee9d8 100644 --- a/.gitea/workflows/convert-to-yml.yml +++ b/.gitea/workflows/convert-to-yml.yml @@ -4,7 +4,7 @@ on: push: jobs: format-branch: - if: ${{ ! startsWith(github.ref_name, 'format-') }} + if: ${{ startsWith(github.ref_name, 'format-') }} runs-on: ubuntu-latest steps: # https://github.com/RouxAntoine/checkout/tree/v3.5.4 @@ -16,6 +16,11 @@ jobs: with: action: yml path: '.' + - name: get production branch name + run: | + firstString=${{ github.ref_name }} + secondString="develop-" + echo "${firstString/format-/"$secondString"}" - name: GIT commit and push all changed files env: CI_COMMIT_MESSAGE: Continuous Integration Build Artifacts