test forgejo action bash
All checks were successful
Deploy workflow / deploy (pull_request) Successful in 31s

This commit is contained in:
Matthieu Bessat 2024-12-23 00:06:06 +01:00
parent 6ed4bebdd6
commit 9fbf62b097

View file

@ -20,19 +20,20 @@ jobs:
- name: Install rsync and bash
run: apt update && apt install -y rsync bash
- name: Set baseURL
shell: /usr/bin/bash
run: |
echo "Checking current branch."
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 -n "https://etoiledebethleem.fr" > /base_url.txt
fi
if [[ "${{ env.github_ref_name }}" == "develop" ]]; then
if [ "${{ env.github_ref_name }}" = "develop" ]
then
echo "Using develop config"
echo -n "https://preview.etoiledebethleem.fr" > /base_url.txt
fi
ls /
ls -la /base_url.txt
cat /base_url.txt
- uses: actions/checkout@v4
with: