如何在 github 操作中从发布中获取描述或名称

时间:2021-01-27 21:03:27

标签: github-actions

我已经阅读了 Github 操作和发布操作的文档,但我找不到任何关于如何从操作中获取名称的信息。我需要运行 fetch 调用或其他什么吗?

name: Publish to Bintray

on:
  release:
    types: [published]
  workflow_dispatch:
    

jobs:
  publish:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: Set up JDK 1.8
      uses: actions/setup-java@v1
      with:
        java-version: 1.8
    - name: Grant execute permission for gradlew
      run: chmod +x gradlew
    - name: Build with Gradle
      run: ./gradlew curseforge uploadSubProjects publishToModrinth --parallel --stacktrace
      env:
          BINTRAY_USER: oroarmor
          BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }}
          CURSE_API_KEY: ${{ secrets.CURSE_API_KEY }}
          MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}

0 个答案:

没有答案