Merge pull request '1001' (#99) from develop-1001 into master
build-develop-branch / build-branch (push) Has been skipped Details
convert-to-yml / develop-branch (push) Has been skipped Details

Reviewed-on: #99
This commit is contained in:
giles 2023-10-22 16:10:35 +00:00
commit 258fabee4b
2 changed files with 11 additions and 1 deletions

View File

@ -16,7 +16,7 @@ jobs:
with:
action: yml
path: '.'
- name: get production branch name
- name: get development branch name
run: |
firstString=${{ github.ref_name }}
secondString="develop-"

View File

@ -10,6 +10,7 @@ jobs:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: http://sigyl.com:3000/actions/checkout@v3.5.4
- name: on-merge
run: |
echo The PR was merged into ${{ github.event.pull_request.base.ref }} from ${{ github.ref_name }} from ${{ github.ref }} type ${{ github.ref_type }}
@ -18,4 +19,13 @@ jobs:
echo head_ref : ${{ github.head_ref }}
echo env: ${{ env.GITHUB_HEAD_REF }}
echo env: ${{ env.GITHUB_BASE_REF }}
- name: delete develop branch
run: git push origin --delete ${{ github.head_ref }}
- name: get build branch name
run: |
firstString=${{ github.head_ref }}
secondString="build-"
echo ::set-env name=BUILD_BRANCH::${firstString/format-/"$secondString"}
- name: delete build branch
run: git push origin --delete ${{ env.BUILD_BRANCH }}