add bash as shell
This commit is contained in:
@@ -15,8 +15,8 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Fetch CI template via Gitea API
|
- name: Fetch CI template via Gitea API
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
# get the template file (base64)
|
|
||||||
resp=$(curl -sSL \
|
resp=$(curl -sSL \
|
||||||
-H "Authorization: token $TOKEN" \
|
-H "Authorization: token $TOKEN" \
|
||||||
"$GITEA_API/repos/osc/skins-template/contents/$TEMPLATE_PATH?ref=main")
|
"$GITEA_API/repos/osc/skins-template/contents/$TEMPLATE_PATH?ref=main")
|
||||||
@@ -24,6 +24,7 @@ jobs:
|
|||||||
echo "TEMPLATE_B64=$template_b64" >> $GITHUB_ENV
|
echo "TEMPLATE_B64=$template_b64" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Fetch valid user repositories
|
- name: Fetch valid user repositories
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
page=1
|
page=1
|
||||||
per_page=50
|
per_page=50
|
||||||
@@ -88,6 +89,7 @@ jobs:
|
|||||||
echo "VALID_REPOS_FILE=$valid_repos_file" >> $GITHUB_ENV
|
echo "VALID_REPOS_FILE=$valid_repos_file" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Update CI via Gitea API
|
- name: Update CI via Gitea API
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
mapfile -t repos < "$VALID_REPOS_FILE"
|
mapfile -t repos < "$VALID_REPOS_FILE"
|
||||||
total=${#repos[@]}
|
total=${#repos[@]}
|
||||||
@@ -128,4 +130,5 @@ jobs:
|
|||||||
done
|
done
|
||||||
|
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
|
shell: bash
|
||||||
run: rm -f "$VALID_REPOS_FILE"
|
run: rm -f "$VALID_REPOS_FILE"
|
||||||
|
|||||||
Reference in New Issue
Block a user