1001
build-develop-branch / build-branch (push) Has been skipped Details
convert-to-yml / develop-branch (push) Successful in 40s Details

This commit is contained in:
giles 2023-10-22 17:09:23 +01:00
parent f8b706be17
commit 3f42a4e076
2 changed files with 11 additions and 1 deletions

View File

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

View File

@ -10,6 +10,7 @@ jobs:
if: github.event.pull_request.merged == true if: github.event.pull_request.merged == true
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: http://sigyl.com:3000/actions/checkout@v3.5.4
- name: on-merge - name: on-merge
run: | run: |
echo The PR was merged into ${{ github.event.pull_request.base.ref }} from ${{ github.ref_name }} from ${{ github.ref }} type ${{ github.ref_type }} 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 head_ref : ${{ github.head_ref }}
echo env: ${{ env.GITHUB_HEAD_REF }} echo env: ${{ env.GITHUB_HEAD_REF }}
echo env: ${{ env.GITHUB_BASE_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 }}