test forgejo action bash
All checks were successful
Deploy workflow / deploy (pull_request) Successful in 31s
All checks were successful
Deploy workflow / deploy (pull_request) Successful in 31s
This commit is contained in:
parent
6ed4bebdd6
commit
9fbf62b097
1 changed files with 5 additions and 4 deletions
|
@ -20,19 +20,20 @@ jobs:
|
||||||
- name: Install rsync and bash
|
- name: Install rsync and bash
|
||||||
run: apt update && apt install -y rsync bash
|
run: apt update && apt install -y rsync bash
|
||||||
- name: Set baseURL
|
- name: Set baseURL
|
||||||
shell: /usr/bin/bash
|
|
||||||
run: |
|
run: |
|
||||||
echo "Checking current branch."
|
echo "Checking current branch."
|
||||||
echo -n "https://dev.etoiledebethleem.fr" > /base_url.txt
|
echo -n "https://dev.etoiledebethleem.fr" > /base_url.txt
|
||||||
if [[ "${{ env.github_ref_name }}" == "master" ]]; then
|
if [ "${{ env.github_ref_name }}" = "master" ]
|
||||||
|
then
|
||||||
echo "Using master config"
|
echo "Using master config"
|
||||||
echo -n "https://etoiledebethleem.fr" > /base_url.txt
|
echo -n "https://etoiledebethleem.fr" > /base_url.txt
|
||||||
fi
|
fi
|
||||||
if [[ "${{ env.github_ref_name }}" == "develop" ]]; then
|
if [ "${{ env.github_ref_name }}" = "develop" ]
|
||||||
|
then
|
||||||
echo "Using develop config"
|
echo "Using develop config"
|
||||||
echo -n "https://preview.etoiledebethleem.fr" > /base_url.txt
|
echo -n "https://preview.etoiledebethleem.fr" > /base_url.txt
|
||||||
fi
|
fi
|
||||||
ls /
|
ls -la /base_url.txt
|
||||||
cat /base_url.txt
|
cat /base_url.txt
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue