mirror of
https://github.com/go-shiori/shiori.git
synced 2025-09-13 16:36:38 +08:00
Fix CI incorrectly tagging RC releases and disables docker builds on forks (#686)
* properly tag rc releases * avoid builds on forked prs * simplify condition
This commit is contained in:
parent
307f293430
commit
e5f2de0930
2 changed files with 3 additions and 2 deletions
3
.github/workflows/_buildx.yml
vendored
3
.github/workflows/_buildx.yml
vendored
|
@ -26,10 +26,9 @@ jobs:
|
||||||
- name: Prepare master push tags
|
- name: Prepare master push tags
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
||||||
run: |
|
run: |
|
||||||
echo "tag_flags=--tag ${{ github.ref }}" >> $GITHUB_ENV
|
|
||||||
REPO=ghcr.io/${{ github.repository }}
|
REPO=ghcr.io/${{ github.repository }}
|
||||||
TAG=$(git describe --tags)
|
TAG=$(git describe --tags)
|
||||||
if [ -z "$(git tag --points-at HEAD)" ]
|
if [ -z "$(git tag --points-at HEAD)" ] || [ "$TAG" == *"rc"* ]
|
||||||
then
|
then
|
||||||
TAG2="dev"
|
TAG2="dev"
|
||||||
else
|
else
|
||||||
|
|
2
.github/workflows/pull_request.yml
vendored
2
.github/workflows/pull_request.yml
vendored
|
@ -19,4 +19,6 @@ jobs:
|
||||||
uses: ./.github/workflows/_gorelease.yml
|
uses: ./.github/workflows/_gorelease.yml
|
||||||
call-buildx:
|
call-buildx:
|
||||||
needs: call-gorelease
|
needs: call-gorelease
|
||||||
|
# only build on pull requests from the same repo for now
|
||||||
|
if: github.event.pull_request.head.repo.full_name == github.repository
|
||||||
uses: ./.github/workflows/_buildx.yml
|
uses: ./.github/workflows/_buildx.yml
|
||||||
|
|
Loading…
Add table
Reference in a new issue