@@ -1,6 +1,9 @@
|
||||
---
|
||||
name: Test stage
|
||||
on: [workflow_call]
|
||||
on:
|
||||
push:
|
||||
branches-ignore:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
test_shellcheck:
|
||||
|
||||
@@ -4,20 +4,21 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
workflow_run:
|
||||
workflows: ["Test stage"]
|
||||
branches: [main]
|
||||
types:
|
||||
- completed
|
||||
|
||||
jobs:
|
||||
test_shellcheck:
|
||||
uses: ./.gitea/workflows/test.yaml
|
||||
name: check and test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install shellcheck
|
||||
run: apt update && apt install -y shellcheck
|
||||
- name: test
|
||||
run: ./shellcheck.sh
|
||||
buildpush:
|
||||
name: build_and_push
|
||||
needs: [tests_shellcheck]
|
||||
runs-on: ubuntu-latest
|
||||
if: gitea.event.workflow_run.conclusion == 'success'
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Login to docker
|
||||
Reference in New Issue
Block a user