Merge pull request #1769 from janhq/regression/fix-ci-run-failed
Correct bash script syntax in ci
This commit is contained in:
commit
1b49c76ea8
@ -29,14 +29,14 @@ jobs:
|
|||||||
- name: Set public provider
|
- name: Set public provider
|
||||||
id: set-public-provider
|
id: set-public-provider
|
||||||
run: |
|
run: |
|
||||||
if [ ${{ github.event == 'workflow_dispatch' }} ]; then
|
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
|
||||||
echo "::set-output name=public_provider::${{ github.event.inputs.public_provider }}"
|
echo "::set-output name=public_provider::${{ github.event.inputs.public_provider }}"
|
||||||
echo "::set-output name=ref::${{ github.ref }}"
|
echo "::set-output name=ref::${{ github.ref }}"
|
||||||
else
|
else
|
||||||
if [ ${{ github.event_name == 'schedule' }} ]; then
|
if [ "${{ github.event_name }}" == "schedule" ]; then
|
||||||
echo "::set-output name=public_provider::cloudflare-r2"
|
echo "::set-output name=public_provider::cloudflare-r2"
|
||||||
echo "::set-output name=ref::refs/heads/dev"
|
echo "::set-output name=ref::refs/heads/dev"
|
||||||
else if [ ${{ github.event_name == 'push' }} ]; then
|
elif [ "${{ github.event_name }}" == "push" ]; then
|
||||||
echo "::set-output name=public_provider::cloudflare-r2"
|
echo "::set-output name=public_provider::cloudflare-r2"
|
||||||
echo "::set-output name=ref::${{ github.ref }}"
|
echo "::set-output name=ref::${{ github.ref }}"
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user