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