mirror of
https://code.forgejo.org/actions/cascading-pr.git
synced 2025-07-21 23:08:23 +02:00
chore(upgrade): setup-forgejo@v1.0.1 to setup-forgejo@v3.0.1
This commit is contained in:
parent
029ff0f858
commit
c13c83cba2
1 changed files with 6 additions and 4 deletions
|
@ -14,7 +14,7 @@ jobs:
|
|||
- uses: actions/checkout@v4
|
||||
|
||||
- id: forgejo
|
||||
uses: https://code.forgejo.org/actions/setup-forgejo@v1.0.1
|
||||
uses: https://code.forgejo.org/actions/setup-forgejo@v3.0.1
|
||||
with:
|
||||
user: root
|
||||
password: admin1234
|
||||
|
@ -24,10 +24,12 @@ jobs:
|
|||
|
||||
- name: tests cascading-pr
|
||||
run: |
|
||||
set -x
|
||||
export PATH=$(pwd):$PATH
|
||||
runner_config=/tmp/runner-config.yaml
|
||||
sed -e 's|file: .runner|file: ${{ steps.forgejo.outputs.runner-file }}|' < tests/runner-config.yaml > $runner_config
|
||||
FORGEJO_RUNNER_CONFIG=$runner_config forgejo-runner.sh reload
|
||||
export PATH=$(pwd):$PATH
|
||||
DIR=$(dirname ${{ steps.forgejo.outputs.runner-file }})
|
||||
DIR=$DIR FORGEJO_RUNNER_CONFIG=$runner_config forgejo-runner.sh reload
|
||||
tests/run.sh --verbose --host_port ${{ steps.forgejo.outputs.host-port }} --url ${{ steps.forgejo.outputs.url }} --token ${{ steps.forgejo.outputs.token }}
|
||||
|
||||
- name: full logs
|
||||
|
@ -35,4 +37,4 @@ jobs:
|
|||
run: |
|
||||
sed -e 's/^/[RUNNER LOGS] /' ${{ steps.forgejo.outputs.runner-logs }}
|
||||
docker logs forgejo | sed -e 's/^/[FORGEJO LOGS]/'
|
||||
sleep 5 # hack to avoid mixing outputs in Forgejo v1.21
|
||||
sleep 5 # hack to avoid mixing outputs in Forgejo v12.0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue