mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix filtering on the release workflow (#6370)
Signed-off-by: Sebastian Malton <sebastian@malton.name> Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
7b2c226fdd
commit
1e6cabd8bf
47
.github/workflows/release.yml
vendored
47
.github/workflows/release.yml
vendored
@ -3,35 +3,28 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
types:
|
types:
|
||||||
- closed
|
- closed
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- release/v*.*
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
name: Release
|
name: Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: ${{ github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release') }}
|
||||||
steps:
|
steps:
|
||||||
- name: Print event
|
- name: Checkout Release from lens
|
||||||
run: |
|
uses: actions/checkout@v2
|
||||||
echo "merged=${{ github.event.pull_request.merged }}"
|
with:
|
||||||
echo "merged=${{ github.event.pull_request.merged == 'true' }}"
|
fetch-depth: 0
|
||||||
echo "ref=${{ github.event.pull_request.base.ref }}"
|
- uses: butlerlogic/action-autotag@stable
|
||||||
echo "targets_master=${{ github.event.pull_request.base.ref == 'master' }}"
|
id: tagger
|
||||||
echo "targets_release_branch=${{ startsWith(github.event.pull_request.base.ref, 'release/v') }}"
|
with:
|
||||||
echo "is_release=${{ contains(github.event.pull_request.labels.*.name, 'release') }}"
|
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
echo "should_continue_release=${{ true && true && (false || true) }}"
|
tag_prefix: "v"
|
||||||
echo "should_continue=${{ github.event.pull_request.merged == 'true' && contains(github.event.pull_request.labels.*.name, 'release') && (github.event.pull_request.base.ref == 'master' || startsWith(github.event.pull_request.base.ref, 'release/v')) }}"
|
- uses: ncipollo/release-action@v1
|
||||||
exit 1
|
if: ${{ needs.tag.outputs.tagname != '' }}
|
||||||
# - name: Checkout Release from lens
|
with:
|
||||||
# uses: actions/checkout@v2
|
name: v${{ steps.open-lens-version.outputs.VERSION }}
|
||||||
# with:
|
commit: master
|
||||||
# fetch-depth: 0
|
tag: v${{ steps.open-lens-version.outputs.VERSION }}
|
||||||
# - uses: butlerlogic/action-autotag@stable
|
body: ${{ github.event.pull_request.body }}
|
||||||
# id: tagger
|
|
||||||
# with:
|
|
||||||
# GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
|
||||||
# tag_prefix: "v"
|
|
||||||
# - uses: ncipollo/release-action@v1
|
|
||||||
# if: ${{ needs.tag.outputs.tagname != '' }}
|
|
||||||
# with:
|
|
||||||
# name: v${{ steps.open-lens-version.outputs.VERSION }}
|
|
||||||
# commit: master
|
|
||||||
# tag: v${{ steps.open-lens-version.outputs.VERSION }}
|
|
||||||
# body: ${{ github.event.pull_request.body }}
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user