Merge pull request 'here it is' (#101) 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: #101
This commit is contained in:
giles 2023-10-22 16:21:50 +00:00
commit 5341428660
1 changed files with 14 additions and 0 deletions

View File

@ -20,12 +20,26 @@ jobs:
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 - name: delete develop branch
id: delete_develop_branch
run: git push origin --delete ${{ github.head_ref }} run: git push origin --delete ${{ github.head_ref }}
continue-on-error: true
- uses: mainmatter/continue-on-error-comment@v1
with:
repo-token: ${{ secrets.TEA_TOKEN }}
outcome: ${{ steps.delete_develop_branch.outcome }}
test-id: Error code ${{ matrix.code }}
- name: get build branch name - name: get build branch name
run: | run: |
firstString=${{ github.head_ref }} firstString=${{ github.head_ref }}
secondString="build-" secondString="build-"
echo ::set-env name=BUILD_BRANCH::${firstString/develop-/"$secondString"} echo ::set-env name=BUILD_BRANCH::${firstString/develop-/"$secondString"}
- name: delete build branch - name: delete build branch
id: delete_build_branch
run: git push origin --delete ${{ env.BUILD_BRANCH }} run: git push origin --delete ${{ env.BUILD_BRANCH }}
continue-on-error: true
- uses: mainmatter/continue-on-error-comment@v1
with:
repo-token: ${{ secrets.TEA_TOKEN }}
outcome: ${{ steps.delete_build_branch.outcome }}
test-id: Error code ${{ matrix.code }}