@ -30,14 +30,14 @@ jobs:
|
||||
create-release:
|
||||
runs-on: act_runner_base
|
||||
needs: build-deploy
|
||||
if: ${{ success() && github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'master' }}
|
||||
if: ${{ success() && github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'master' && startsWith(github.event.pull_request.title, 'v') }}
|
||||
steps:
|
||||
- name: Create release
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.RUNNER_TOKEN }}
|
||||
GITEA_SERVER_URL: ${{ github.server_url }}
|
||||
GITEA_REPOSITORY: ${{ github.repository }}
|
||||
RELEASE_TAG: ci-${{ github.run_id }}
|
||||
RELEASE_TAG: ${{ github.event.pull_request.title }}
|
||||
RELEASE_TARGET: ${{ github.sha }}
|
||||
run: |
|
||||
if [ -z "$GITEA_TOKEN" ]; then
|
||||
|
||||
Reference in New Issue
Block a user