Skip to content

Commit

Permalink
Replace set-output command with GITHUB_OUTPUT env var
Browse files Browse the repository at this point in the history
  • Loading branch information
daohoangson committed Aug 13, 2023
1 parent c082900 commit 586fa7e
Showing 1 changed file with 5 additions and 20 deletions.
25 changes: 5 additions & 20 deletions .github/workflows/flutter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,7 @@ jobs:
| xargs -n 1 -I {} printf -- "- [%s](${GCS_URL}/apk/%s)\n" {} {}; \
)
_message="${_message//'%'/'%25'}"
_message="${_message//$'\n'/'%0A'}"
_message="${_message//$'\r'/'%0D'}"
echo "::set-output name=MESSAGE::${_message}"
printf 'MESSAGE<<EOF\n%s\nEOF\n' "${_message}" >> $GITHUB_OUTPUT
- name: Post GitHub comment
uses: daohoangson/comment-on-github@v2
env:
Expand Down Expand Up @@ -122,10 +119,7 @@ jobs:
printf '[manifest.plist](%s)' "${GCS_URL}/ipa/redirect.html"; \
)
_message="${_message//'%'/%25}"
_message="${_message//$'\n'/%0A}"
_message="${_message//$'\r'/%0D}"
echo "::set-output name=MESSAGE::${_message}"
printf 'MESSAGE<<EOF\n%s\nEOF\n' "${_message}" >> $GITHUB_OUTPUT
- name: Post GitHub comment
uses: daohoangson/comment-on-github@v2
env:
Expand Down Expand Up @@ -192,10 +186,7 @@ jobs:
printf '[bundle.zip](%s)\n' "${GCS_URL}/linux/bundle.zip"; \
)
_message="${_message//'%'/'%25'}"
_message="${_message//$'\n'/'%0A'}"
_message="${_message//$'\r'/'%0D'}"
echo "::set-output name=MESSAGE::${_message}"
printf 'MESSAGE<<EOF\n%s\nEOF\n' "${_message}" >> $GITHUB_OUTPUT
- name: Post GitHub comment
uses: daohoangson/comment-on-github@v2
env:
Expand Down Expand Up @@ -260,10 +251,7 @@ jobs:
| xargs -n 1 -I {} printf -- "- [%s](${GCS_URL}/macos/%s)\n" {} {}; \
)
_message="${_message//'%'/%25}"
_message="${_message//$'\n'/%0A}"
_message="${_message//$'\r'/%0D}"
echo "::set-output name=MESSAGE::${_message}"
printf 'MESSAGE<<EOF\n%s\nEOF\n' "${_message}" >> $GITHUB_OUTPUT
- name: Post GitHub comment
uses: daohoangson/comment-on-github@v2
env:
Expand Down Expand Up @@ -328,10 +316,7 @@ jobs:
printf '1. Then run [the installer](%s)\n' "${GCS_URL}/windows/the_app.msix"; \
)
_message="${_message//'%'/'%25'}"
_message="${_message//$'\n'/'%0A'}"
_message="${_message//$'\r'/'%0D'}"
echo "::set-output name=MESSAGE::${_message}"
printf 'MESSAGE<<EOF\n%s\nEOF\n' "${_message}" >> $GITHUB_OUTPUT
- name: Post GitHub comment
uses: daohoangson/comment-on-github@v2
env:
Expand Down

1 comment on commit 586fa7e

@github-actions
Copy link

@github-actions github-actions bot commented on 586fa7e Aug 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Linux build

# Generated code do not commit.
file(TO_CMAKE_PATH "/opt/hostedtoolcache/flutter/stable-3.10.2-x64" FLUTTER_ROOT)
file(TO_CMAKE_PATH "/home/runner/work/flutter-tinhte_demo/flutter-tinhte_demo" PROJECT_DIR)

set(FLUTTER_VERSION "2.0.1+5911" PARENT_SCOPE)
set(FLUTTER_VERSION_MAJOR 2 PARENT_SCOPE)
set(FLUTTER_VERSION_MINOR 0 PARENT_SCOPE)
set(FLUTTER_VERSION_PATCH 1 PARENT_SCOPE)
set(FLUTTER_VERSION_BUILD 5911 PARENT_SCOPE)

# Environment variables to pass to tool_backend.sh
list(APPEND FLUTTER_TOOL_ENVIRONMENT
  "FLUTTER_ROOT=/opt/hostedtoolcache/flutter/stable-3.10.2-x64"
  "PROJECT_DIR=/home/runner/work/flutter-tinhte_demo/flutter-tinhte_demo"
  "DART_OBFUSCATION=false"
  "TRACK_WIDGET_CREATION=true"
  "TREE_SHAKE_ICONS=true"
  "PACKAGE_CONFIG=/home/runner/work/flutter-tinhte_demo/flutter-tinhte_demo/.dart_tool/package_config.json"
  "FLUTTER_TARGET=lib/main.dart"
)

bundle.zip

Android builds

sdk.dir=/usr/local/lib/android/sdk
flutter.sdk=/opt/hostedtoolcache/flutter/stable-3.10.2-x64
flutter.buildMode=release
flutter.versionName=2.0.1
flutter.versionCode=5911

Windows build

# Generated code do not commit.
file(TO_CMAKE_PATH "C:\\hostedtoolcache\\windows\\flutter\\stable-3.10.2-x64" FLUTTER_ROOT)
file(TO_CMAKE_PATH "D:\\a\\flutter-tinhte_demo\\flutter-tinhte_demo" PROJECT_DIR)

set(FLUTTER_VERSION "2.0.1+5911" PARENT_SCOPE)
set(FLUTTER_VERSION_MAJOR 2 PARENT_SCOPE)
set(FLUTTER_VERSION_MINOR 0 PARENT_SCOPE)
set(FLUTTER_VERSION_PATCH 1 PARENT_SCOPE)
set(FLUTTER_VERSION_BUILD 5911 PARENT_SCOPE)

# Environment variables to pass to tool_backend.sh
list(APPEND FLUTTER_TOOL_ENVIRONMENT
  "FLUTTER_ROOT=C:\\hostedtoolcache\\windows\\flutter\\stable-3.10.2-x64"
  "PROJECT_DIR=D:\\a\\flutter-tinhte_demo\\flutter-tinhte_demo"
  "FLUTTER_ROOT=C:\\hostedtoolcache\\windows\\flutter\\stable-3.10.2-x64"
  "FLUTTER_EPHEMERAL_DIR=D:\\a\\flutter-tinhte_demo\\flutter-tinhte_demo\\windows\\flutter\\ephemeral"
  "PROJECT_DIR=D:\\a\\flutter-tinhte_demo\\flutter-tinhte_demo"
  "FLUTTER_TARGET=lib\\main.dart"
  "DART_OBFUSCATION=false"
  "TRACK_WIDGET_CREATION=true"
  "TREE_SHAKE_ICONS=true"
  "PACKAGE_CONFIG=D:\\a\\flutter-tinhte_demo\\flutter-tinhte_demo\\.dart_tool\\package_config.json"
)

  1. Installing a test certificate directly from an MSIX package
  2. Then run the installer

iOS build

// This is a generated file; do not edit or check into version control.
FLUTTER_ROOT=/Users/runner/hostedtoolcache/flutter/stable-3.10.2-x64
FLUTTER_APPLICATION_PATH=/Users/runner/work/flutter-tinhte_demo/flutter-tinhte_demo
COCOAPODS_PARALLEL_CODE_SIGN=true
FLUTTER_TARGET=lib/main.dart
FLUTTER_BUILD_DIR=build
FLUTTER_BUILD_NAME=2.0.1
FLUTTER_BUILD_NUMBER=5911
EXCLUDED_ARCHS[sdk=iphonesimulator*]=i386
EXCLUDED_ARCHS[sdk=iphoneos*]=armv7
DART_OBFUSCATION=false
TRACK_WIDGET_CREATION=false
TREE_SHAKE_ICONS=true
PACKAGE_CONFIG=/Users/runner/work/flutter-tinhte_demo/flutter-tinhte_demo/.dart_tool/package_config.json

manifest.plist

macOS build

// This is a generated file; do not edit or check into version control.
FLUTTER_ROOT=/Users/runner/hostedtoolcache/flutter/stable-3.10.2-x64
FLUTTER_APPLICATION_PATH=/Users/runner/work/flutter-tinhte_demo/flutter-tinhte_demo
COCOAPODS_PARALLEL_CODE_SIGN=true
FLUTTER_TARGET=lib/main.dart
FLUTTER_BUILD_DIR=build
FLUTTER_BUILD_NAME=2.0.1
FLUTTER_BUILD_NUMBER=5911
DART_OBFUSCATION=false
TRACK_WIDGET_CREATION=true
TREE_SHAKE_ICONS=true
PACKAGE_CONFIG=/Users/runner/work/flutter-tinhte_demo/flutter-tinhte_demo/.dart_tool/package_config.json

Please sign in to comment.