mirror of
https://code.forgejo.org/actions/cascading-pr.git
synced 2025-04-21 08:28:44 +00:00
add the forgejo dependency graph in the README
This commit is contained in:
parent
ff9bc575f5
commit
9e848c27a8
2 changed files with 26 additions and 3 deletions
|
@ -18,7 +18,7 @@ jobs:
|
||||||
user: root
|
user: root
|
||||||
password: admin1234
|
password: admin1234
|
||||||
image: codeberg.org/forgejo-integration/forgejo
|
image: codeberg.org/forgejo-integration/forgejo
|
||||||
image-version: 1.21.0-5-rc2
|
image-version: 1.21.0-6-rc2
|
||||||
lxc-ip-prefix: 10.1.15
|
lxc-ip-prefix: 10.1.15
|
||||||
|
|
||||||
- name: tests cascading-pr
|
- name: tests cascading-pr
|
||||||
|
|
27
README.md
27
README.md
|
@ -78,7 +78,30 @@ not exist, it is created.
|
||||||
| debug | if true print debug information | `false` | false |
|
| debug | if true print debug information | `false` | false |
|
||||||
<!-- action-docs-inputs -->
|
<!-- action-docs-inputs -->
|
||||||
|
|
||||||
# Example
|
# Forgejo dependencies
|
||||||
|
|
||||||
|
The [Forgejo](https://codeberg.org/forgejo/forgejo/) repositories that depend on each other are
|
||||||
|
linked with workflows using `cascading-pr` as follows.
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
flowchart TD
|
||||||
|
lxc-helper(lxc-helper) --> act(act)
|
||||||
|
act --> runner(Forgejo runner)
|
||||||
|
runner --> setup-forgejo(setup-forgejo)
|
||||||
|
setup-forgejo --> e2e(end-to-end)
|
||||||
|
forgejo-curl(forgejo-curl.sh) --> setup-forgejo
|
||||||
|
forgejo(forgejo) --> e2e
|
||||||
|
|
||||||
|
click lxc-helper "https://code.forgejo.org/forgejo/lxc-helpers/src/branch/main/.forgejo/workflows/cascade-act.yml"
|
||||||
|
click act "https://code.forgejo.org/forgejo/act/src/branch/main/.forgejo/workflows/cascade-runner.yml"
|
||||||
|
click runner "https://code.forgejo.org/forgejo/runner/src/branch/main/.forgejo/workflows/cascade-setup-forgejo.yml"
|
||||||
|
click setup-forgejo "https://code.forgejo.org/actions/setup-forgejo/src/branch/main/.forgejo/workflows/cascade-end-to-end.yml"
|
||||||
|
click e2e "https://code.forgejo.org/actions/end-to-end"
|
||||||
|
click forgejo-curl "https://code.forgejo.org/forgejo/forgejo-curl/src/branch/main/.forgejo/workflows/cascade-setup-forgejo.yml"
|
||||||
|
click forgejo "https://codeberg.org/forgejo/forgejo/src/branch/forgejo/.forgejo/workflows/cascade-setup-end-to-end.yml"
|
||||||
|
```
|
||||||
|
|
||||||
|
# Example workflow
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
on:
|
on:
|
||||||
|
@ -100,7 +123,7 @@ jobs:
|
||||||
origin-token: ${{ secrets.ORIGIN_TOKEN }}
|
origin-token: ${{ secrets.ORIGIN_TOKEN }}
|
||||||
origin-pr: ${{ github.event.pull_request.number }}
|
origin-pr: ${{ github.event.pull_request.number }}
|
||||||
destination-url: https://code.forgejo.org
|
destination-url: https://code.forgejo.org
|
||||||
destination-repo: forgejo/actd
|
destination-repo: forgejo/act
|
||||||
destination-branch: main
|
destination-branch: main
|
||||||
destination-token: ${{ secrets.DESTINATION_TOKEN }}
|
destination-token: ${{ secrets.DESTINATION_TOKEN }}
|
||||||
update: ./upgrade-lxc-helpers
|
update: ./upgrade-lxc-helpers
|
||||||
|
|
Loading…
Add table
Reference in a new issue