- 最新
- 投票最多
- 评论最多
Hi Johannes, Thanks for sharing your initial YAML. I'm glad the YAML I shared worked for you, but just for your information
-
- You don't need to use the
checkout
action in CodeCatalyst.
- You don't need to use the
- Not sure if this is because of pasting the YAML in the post, but there is an extra space before the
uses
section.
Here's the YAML with the flutter action that worked for me. FYI, you don't need to use the checkout
action. If you configure the GitHub Actions action with Inputs
-> Sources
, that instructs the action to checkout the code in the repository where the workflow is stored aka WorkflowSource.
Name: TestGH
SchemaVersion: "1.0"
Actions:
FlutterGH:
Identifier: aws/github-actions-runner@v1
Inputs:
Sources:
- WorkflowSource
Configuration:
Steps:
- name: Flutter action
uses: subosito/flutter-action@v2
with:
flutter-version: '3.0.5'
channel: 'stable'
- run: flutter --version
I'm not familiar with the Flutter action to give proper guidance. But you can run multiple shell commands using the GitHub run:
syntax for each command or use ";" to separate the commands. Did the YAML that you pasted work for you?
Here's what I did and the workflow succeeded
Configuration:
Steps:
- name: Flutter action
uses: subosito/flutter-action@v2
with:
flutter-version: '3.0.5'
channel: 'stable'
- run: flutter --version
- run: echo "hello"; echo "world"
Can you also share that issue you ran into initially when your workflow failed and what fixed it?
Is the Type
attribute of Compute
configuration set to Lambda
either in the action or at the workflow scope? Can you share the YAML configuration of the workflow and the action?
Thanks Ranjith, that helped to solve my problem.
If I need to switch directories, the only option is to use a ";" inside the "run" - correct?
Johannes
GitHubActions_40: Identifier: aws/github-actions-runner@v1
Inputs: Sources: - WorkflowSource # This specifies that the action requires this Workflow as a source Configuration: Steps: - name: Flutter Build Web uses: subosito/flutter-action@v2 with: channel: 'stable' - run: cd mydirectory;flutter pub get
Hey
The original error was "no error visibile" ;) I have fixed that with two things... My initial YAML was
Name: TestGH
SchemaVersion: "1.0"
Actions:
FlutterGH:
Identifier: aws/github-actions-runner@v1
Inputs:
Sources:
- WorkflowSource
Configuration:
Steps:
- name: Flutter action
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.0.5'
channel: 'stable'
- run: flutter --version
(had too much - in it and one action too much) - as I had copy/pasted from here: https://github.com/marketplace/actions/flutter-action
相关内容
- AWS 官方已更新 3 年前
Thanks, that must have happened during the copy/pasting