Earl Warren
40950130a5
All checks were successful
/ integration-nested (pull_request) Successful in 3m39s
/ integration (map[image:codeberg.org/forgejo-experimental/forgejo tests:${{ vars.V1_21_TESTS || 'echo push-cancel artifacts service checkout pull-request container expression local-action docker-action if if-fail cron' }} version:1.21.0-3-rc0]) (pull_request) Successful in 7m16s
/ integration (map[image:codeberg.org/forgejo/forgejo tests:${{ vars.V1_20_TESTS || 'echo checkout service container expression local-action docker-action if if-fail' }} version:1.20]) (pull_request) Successful in 4m24s
18 lines
688 B
Bash
Executable file
18 lines
688 B
Bash
Executable file
#!/bin/bash
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
set -e
|
|
|
|
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
|
|
|
|
REPOSITORY="$1"
|
|
VERSION="$2"
|
|
|
|
echo $VERSION > $ROOT_DIR/RUNNER_VERSION
|
|
sed -i -e 's^| runner-version | Runner version |.*^| runner-version | Runner version | `false` | '$VERSION' |^' $ROOT_DIR/README.md
|
|
sed -i -e "/runner-version:/{n;n;s^.*default:.*^ default: '$VERSION'^}" $ROOT_DIR/action.yml
|
|
|
|
echo $REPOSITORY > $ROOT_DIR/RUNNER_REPOSITORY
|
|
sed -i -e 's^| runner | Runner git repository |.*^| runner | Runner git repository | `false` | '$REPOSITORY' |^' $ROOT_DIR/README.md
|
|
sed -i -e "/runner:/{n;n;s^.*default:.*^ default: '$REPOSITORY'^}" $ROOT_DIR/action.yml
|