Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
fast-forward

GitHub Action

gh-release-with-wf-dispatch

v0.2.0

gh-release-with-wf-dispatch

fast-forward

gh-release-with-wf-dispatch

release

Installation

Copy and paste the following snippet into your .yml file.

              

- name: gh-release-with-wf-dispatch

uses: dionomusuko/[email protected]

Learn more about this action in dionomusuko/gh-release-with-wf-dispatch

Choose a version

gh-release-with-wf-dispatch

gh-release-with-wf-dispatch crates github tag with gh-release

Using this function with workflow dispatch, the RELEASE file can be rewritten.

Usage

Creating a personal access token

Creating your personal access token and save as a repository secret. (e.g. GH_PAT)

Personal access tokens (classic): https://github.com/settings/tokens

Note

Fine-grained personal access tokens are not supported currently.

Workflow

name: Release

on:
  workflow_dispatch:
    inputs:
      release_file_path:
        description: "path to RELEASE file"
        required: true
        type: choice
        options:
          - app1/RELEASE
          - app2/RELEASE
      next_semver_level:
        description: "semver level to bump"
        required: true
        type: choice
        options:
          - patch
          - minor
          - major

jobs:
  main:
    runs-on: ubuntu-22.04
    permissions:
      contents: read
    timeout-minutes: 5
    steps:
      - uses: actions/checkout@v3
      - uses: dionomusuko/gh-release-with-wf-dispatch@main
        with:
          github_token: ${{ secrets.GH_PAT }}
          release_file_path: ${{ github.event.inputs.release_file_path }}
          next_semver_level: ${{ github.event.inputs.next_semver_level }}
          base_branch: "develop"
          user_name: "username"
          user_email: "[email protected]"