Skip to content

测试密钥和变量 #6

测试密钥和变量

测试密钥和变量 #6

Workflow file for this run

name: 测试密钥和变量
on:
workflow_dispatch: #github页面手动触1发
jobs:
get-tags:
runs-on: ubuntu-20.04
env:
TZ: Asia/Shanghai
outputs:
tags: ${{ steps.set-output-id.outputs.tags }}
steps:
- name: 读取变量
id: set-output-id
run: |
VERSION=bubbles
echo "版本号:${{ env.TZ }}"
echo "版本号:${{ env.DOCKER_IMAGE_NAME }}"
- name: 读取密钥
id: set-output-id-2
run: |

Check failure on line 21 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / 测试密钥和变量

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 21, Col: 14): Unrecognized named-value: 'secrects'. Located at position 1 within expression: secrects.GH_TOKEN
VERSION=bubbles
echo "版本号:${{ secrects.GH_TOKEN }}"