Fix 24
This commit is contained in:
@@ -15,18 +15,6 @@ jobs:
|
|||||||
#if: gitea.ref == 'refs/heads/main'
|
#if: gitea.ref == 'refs/heads/main'
|
||||||
steps:
|
steps:
|
||||||
- uses: https://github.com/actions/checkout@v4
|
- uses: https://github.com/actions/checkout@v4
|
||||||
- name: Set env
|
|
||||||
run: |
|
|
||||||
echo "Test"
|
|
||||||
echo "${{gitea.ref_name}}"
|
|
||||||
echo ${{gitea.ref_name}}
|
|
||||||
${{gitea.ref_name}}
|
|
||||||
echo "${{gitea.ref_name#release/}}"
|
|
||||||
echo ${{gitea.ref_name#release/}}
|
|
||||||
- name: Test
|
|
||||||
run: |
|
|
||||||
echo $RELEASE_VERSION
|
|
||||||
echo ${{ env.RELEASE_VERSION }}
|
|
||||||
|
|
||||||
#GITHUB_REF_NAME
|
#GITHUB_REF_NAME
|
||||||
|
|
||||||
|
|||||||
@@ -4,10 +4,7 @@ run-name: ${{ gitea.actor }} is runs ci pipeline
|
|||||||
#on:
|
#on:
|
||||||
# release:
|
# release:
|
||||||
# types: [published]
|
# types: [published]
|
||||||
on:
|
on: [push]
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- release/*
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# test:
|
# test:
|
||||||
@@ -24,15 +21,9 @@ jobs:
|
|||||||
publish:
|
publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
needs: build
|
||||||
#if: gitea.ref == 'refs/heads/main'
|
if: gitea.ref != 'refs/heads/main'
|
||||||
steps:
|
steps:
|
||||||
- uses: https://github.com/actions/checkout@v4
|
- uses: https://github.com/actions/checkout@v4
|
||||||
- name: Set env
|
|
||||||
run: echo "RELEASE_VERSION=${gitea.ref_name#release/}" >> gitea.env
|
|
||||||
- name: Test
|
|
||||||
run: |
|
|
||||||
echo $RELEASE_VERSION
|
|
||||||
echo ${{ env.RELEASE_VERSION }}
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: https://github.com/docker/setup-buildx-action@v3
|
uses: https://github.com/docker/setup-buildx-action@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user