From e39c635a02e58e2268dc5097b703ddb13e273681 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Sat, 25 Mar 2023 17:09:01 +0100 Subject: [PATCH] reference itself --- .forgejo/workflows/integration.yml | 1 + testdata/run.sh | 2 ++ testdata/{setup-forgejo.yml => try-setup-forgejo.yml} | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) rename testdata/{setup-forgejo.yml => try-setup-forgejo.yml} (81%) diff --git a/.forgejo/workflows/integration.yml b/.forgejo/workflows/integration.yml index 67c6847..bf7b502 100644 --- a/.forgejo/workflows/integration.yml +++ b/.forgejo/workflows/integration.yml @@ -12,3 +12,4 @@ jobs: ./forgejo-runner.sh setup # testdata/run.sh workflow http://root:admin1234@$(cat forgejo-ip):3000 root demo testdata/run.sh push_self http://root:admin1234@$(cat forgejo-ip):3000 root + testdata/run.sh workflow http://root:admin1234@$(cat forgejo-ip):3000 root try-setup-forgejo diff --git a/testdata/run.sh b/testdata/run.sh index c3fb5eb..21090ed 100755 --- a/testdata/run.sh +++ b/testdata/run.sh @@ -83,6 +83,8 @@ function push_self() { git config user.name username git commit -m 'avoid workflow infinite recursion' git push --force origin fortesting:main + git tag --force vTest HEAD + git push --force origin vTest ) } diff --git a/testdata/setup-forgejo.yml b/testdata/try-setup-forgejo.yml similarity index 81% rename from testdata/setup-forgejo.yml rename to testdata/try-setup-forgejo.yml index b81ca82..edf3183 100644 --- a/testdata/setup-forgejo.yml +++ b/testdata/try-setup-forgejo.yml @@ -6,4 +6,4 @@ jobs: runs-on: self-hosted steps: - uses: actions/checkout@v3 - - uses: SELF/setup-forgejo@v1 + - uses: SELF/setup-forgejo@vTest