tools for exporting godot projects via Github Actions
-rw-r--r--.github/actions/export-web/action.yml2
-rw-r--r--.github/actions/get-export-name/action.yml2
-rw-r--r--.github/actions/setup-godot/action.yml4
-rw-r--r--.github/workflows/callable-export.yml2
4 files changed, 5 insertions, 5 deletions
diff --git a/.github/actions/export-web/action.yml b/.github/actions/export-web/action.yml
index 053471a..6478342 100644
--- a/.github/actions/export-web/action.yml
+++ b/.github/actions/export-web/action.yml
@@ -51,7 +51,7 @@ runs:
- name: Test git repo
id: is-repo
- run: "echo ::set-output name=is-repo::$(git rev-parse --is-inside-work-tree || echo false)"
+ run: echo "is-repo=$(git rev-parse --is-inside-work-tree || echo false)" >> "$GITHUB_OUTPUT"
shell: bash
- name: Deploy
diff --git a/.github/actions/get-export-name/action.yml b/.github/actions/get-export-name/action.yml
index 9676426..5b6972b 100644
--- a/.github/actions/get-export-name/action.yml
+++ b/.github/actions/get-export-name/action.yml
@@ -23,5 +23,5 @@ runs:
echo "::error file=${PROJECT_PATH}/export_presets.cfg,title=Missing Configuration::No export for ${{ inputs.platform }}."
exit 1
)
- echo "::set-output name=export-name::$(python get-export-name.py "${{ inputs.platform }}")"
+ echo "export-name=$(python get-export-name.py "${{ inputs.platform }}")" >> "$GITHUB_OUTPUT"
shell: bash
diff --git a/.github/actions/setup-godot/action.yml b/.github/actions/setup-godot/action.yml
index a59dd4c..6726604 100644
--- a/.github/actions/setup-godot/action.yml
+++ b/.github/actions/setup-godot/action.yml
@@ -7,8 +7,8 @@ runs:
- name: Check if clean
id: clean
run: |
- if [[ -z $(find . -mindepth 1 -maxdepth 1) ]]; then echo "::set-output name=clean::true";
- else echo "::set-output name=clean::false"; fi
+ if [[ -z $(find . -mindepth 1 -maxdepth 1) ]]; then echo "clean=true" >> "$GITHUB_OUTPUT";
+ else echo "clean=false" >> "$GITHUB_OUTPUT"; fi
shell: bash
- name: Checkout
diff --git a/.github/workflows/callable-export.yml b/.github/workflows/callable-export.yml
index 3dfb9e8..982a47a 100644
--- a/.github/workflows/callable-export.yml
+++ b/.github/workflows/callable-export.yml
@@ -118,7 +118,7 @@ jobs:
- name: check
id: secret
run: |
- function output() { echo "::set-output name=secret::$1"; }
+ function output() { echo "secret=$1" >> "$GITHUB_OUTPUT"; }
if [[ -n "${{ secrets.butler-api-key }}" ]];
then output "true";
else output "false";