This commit is contained in:
@@ -1,10 +1,11 @@
|
|||||||
# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions
|
# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions
|
||||||
name: Gitea Actions Demo
|
name: Gitea Actions Demo
|
||||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
||||||
on:
|
on: [ push ]
|
||||||
push:
|
# on:
|
||||||
tags:
|
# push:
|
||||||
- init-stack
|
# tags:
|
||||||
|
# - init-stack
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Create-Stack:
|
Create-Stack:
|
||||||
@@ -37,8 +38,8 @@ jobs:
|
|||||||
STACK_FILE_CONTENT=$(echo "$(<stack.yml )")
|
STACK_FILE_CONTENT=$(echo "$(<stack.yml )")
|
||||||
|
|
||||||
# Prepare JSON payload
|
# Prepare JSON payload
|
||||||
JSON_PAYLOAD=$(jq -n --arg stackFileContent "$STACK_FILE_CONTENT" \
|
JSON_PAYLOAD=$(jq -n --arg stackFileContent "$STACK_FILE_CONTENT" --argjson name $STACK_NAME \
|
||||||
'{stackFileContent: $stackFileContent}')
|
'{stackFileContent: $stackFileContent, name: $name}')
|
||||||
|
|
||||||
echo "About to push the following JSON payload:"
|
echo "About to push the following JSON payload:"
|
||||||
echo $JSON_PAYLOAD
|
echo $JSON_PAYLOAD
|
||||||
|
|||||||
Reference in New Issue
Block a user