Merge workflows, since Gitea doesn't yet support workflow_run.

This commit is contained in:
Dan Helfman 2024-03-06 16:49:50 -08:00
parent 284f26b49d
commit 018f5e3315
2 changed files with 15 additions and 22 deletions

View file

@ -1,17 +1,23 @@
name: docs name: test
run-name: ${{ gitea.actor }} is building documentation run-name: ${{ gitea.actor }} is building
on: on:
workflow_run: push:
workflows: [test] branchs: [main]
types:
- completed
env:
IMAGE_NAME: projects.torsion.org/borgmatic-collective/borgmatic:docs
jobs: jobs:
build: test:
runs-on: host runs-on: host
steps:
- uses: actions/checkout@v4
- run: scripts/run-end-to-end-tests
docs:
needs: [test]
runs-on: host
env:
IMAGE_NAME: projects.torsion.org/borgmatic-collective/borgmatic:docs
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- run: podman login --username "${{ secrets.REGISTRY_USERNAME }}" --password "${{ secrets.REGISTRY_PASSWORD }}" projects.torsion.org - run: podman login --username "${{ secrets.REGISTRY_USERNAME }}" --password "${{ secrets.REGISTRY_PASSWORD }}" projects.torsion.org

View file

@ -1,13 +0,0 @@
name: test
run-name: ${{ gitea.actor }} is running tests
on:
push:
branchs: [main]
jobs:
test:
runs-on: host
steps:
- uses: actions/checkout@v4
- run: scripts/run-end-to-end-tests