Skip to content

Heachy/TestForDocsify

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TestForDocs

One repository for test of docsify

Action的使用

这个仓库主要用来测试docsify和action,所以会有点杂哈哈

这个action主要的功能是输入参数,打印获得返回数据没了哈哈

测试输入输出,action调用等

name: Test the action

run-name: Test the action that my create in the marcket

on:
  push:
    branches: [ "main" ]
  pull_request:
    branches: [ "main" ]

  workflow_dispatch:

jobs:
  test-print-something:
    name: test the action in marcket
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Repository
        uses: actions/checkout@v3
      - name: use the action
        id: use-action
        uses: Heachy/TestForDocsify@main # 这边可以改成版本号了
        with:
          msg_a: hello
          msg_b: world
      - name: use the outputs
        run: |
          echo "The resultA is ${{ steps.use-action.outputs.result_a }}"
          echo "The resultB is ${{ steps.use-action.outputs.result_b }}"
      - name: The End
        run: echo Hello,My Action!
  • 运行结果
  • 会有看到脚本中执行的打印cyan颜色的两行数据(输入的msgA和msgB)
  • 也有看到打印出返回的数据resultA和resultB