Skip to content

.github/workflows/dev_demo.yml #3

.github/workflows/dev_demo.yml

.github/workflows/dev_demo.yml #3

Workflow file for this run

name: 运行hamibot【开发】脚本案例
on:
schedule:
- cron: '0 7,9,11,15,17,21,22 * * *'
jobs:
run_python_script:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.10
- name: 获取参数
id: get_variables
run: |

Check failure on line 22 in .github/workflows/dev_demo.yml

View workflow run for this annotation

GitHub Actions / 运行hamibot【开发】脚本案例

Invalid workflow file

The workflow is not valid. .github/workflows/dev_demo.yml (Line: 22, Col: 14): Unexpected symbol: '${{'. Located at position 5 within expression: env.${{ github.workflow
TOKEN=${{ secrets.HAMIBOT_TOKEN }}
ROBOTS=${{ env.${{ github.workflow }}_Robots }}
SCRIPT=${{ env.${{ github.workflow }}_Script }}
- name: 运行Python脚本
run: python DevRunTrigger.py ${{ steps.get_variables.outputs.TOKEN }} ${{ steps.get_variables.outputs.SCRIPT }} ${{ steps.get_variables.outputs.ROBOTS }}