* replace set-output with $GITHUB_OUTPUT * use stdout for test mode * update readme
This commit is contained in:
26
action.yml
26
action.yml
@@ -30,16 +30,16 @@ inputs:
|
||||
required: false
|
||||
default: '${{ runner.arch }}'
|
||||
outputs:
|
||||
cache-path:
|
||||
value: '${{ steps.flutter-action.outputs.cache-path }}'
|
||||
cache-key:
|
||||
value: '${{ steps.flutter-action.outputs.cache-key }}'
|
||||
channel:
|
||||
value: '${{ steps.flutter-action.outputs.channel }}'
|
||||
version:
|
||||
value: '${{ steps.flutter-action.outputs.version }}'
|
||||
architecture:
|
||||
value: '${{ steps.flutter-action.outputs.architecture }}'
|
||||
CACHE-PATH:
|
||||
value: '${{ steps.flutter-action.outputs.CACHE-PATH }}'
|
||||
CACHE-KEY:
|
||||
value: '${{ steps.flutter-action.outputs.CACHE-KEY }}'
|
||||
CHANNEL:
|
||||
value: '${{ steps.flutter-action.outputs.CHANNEL }}'
|
||||
VERSION:
|
||||
value: '${{ steps.flutter-action.outputs.VERSION }}'
|
||||
ARCHITECTURE:
|
||||
value: '${{ steps.flutter-action.outputs.ARCHITECTURE }}'
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
@@ -49,7 +49,7 @@ runs:
|
||||
- if: ${{ inputs.cache == 'true' }}
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ steps.flutter-action.outputs.cache-path }}
|
||||
key: ${{ steps.flutter-action.outputs.cache-key }}
|
||||
- run: $GITHUB_ACTION_PATH/setup.sh -c '${{ steps.flutter-action.outputs.cache-path }}' -n '${{ steps.flutter-action.outputs.version }}' -a '${{ steps.flutter-action.outputs.architecture }}' ${{ steps.flutter-action.outputs.channel }}
|
||||
path: ${{ steps.flutter-action.outputs.CACHE-PATH }}
|
||||
key: ${{ steps.flutter-action.outputs.CACHE-KEY }}
|
||||
- run: $GITHUB_ACTION_PATH/setup.sh -c '${{ steps.flutter-action.outputs.CACHE-PATH }}' -n '${{ steps.flutter-action.outputs.VERSION }}' -a '${{ steps.flutter-action.outputs.ARCHITECTURE }}' ${{ steps.flutter-action.outputs.CHANNEL }}
|
||||
shell: bash
|
||||
|
||||
Reference in New Issue
Block a user