Thanks to visit codestin.com
Credit goes to github.com

Skip to content

lvjiaxuan/github-action-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

45 Commits
ย 
ย 
ย 
ย 

Repository files navigation

Workflow Templates

  1. lvr-release
  2. lvr-publish(to npm)
  3. update-deps

Usage

Release and Publish are usually used together.

Based on my own release tool.

features:

  1. The release workflow extracts release's notes from CHANGELOG.md which is created by my tool.
  2. The publish workflow supports syncing published pkgages to cnpm.
name: Release and Publish 

on:
  push:
    tags:
      - v*

jobs:
  release:
    permissions:
      contents: write
    uses: lvjiaxuan/github-action-templates/.github/workflows/lvr-release.yml@main
    secrets: inherit

  publish:
    uses: lvjiaxuan/github-action-templates/.github/workflows/lvr-publish.yml@main
    with:
      sync_cnpm: true
    secrets: inherit

Update dependencies

Ways to set the user's email, which is a required param.

  1. A hard code on inputs. Recommend using GitHub's noreply email.
  2. If inputs.email isn't provided, the vars.ACTOR_EMAIL will be read. Refer to actions secrets and variables settings ๐Ÿ‘‰ https://github.com/{actor}/{repo}/settings/secrets/actions .

Tip

๐Ÿ‘‰ cron syntax help

name: Update Dependencies

permissions:
  pull-requests: write
  contents: write

on:
  workflow_dispatch: {}
  schedule:
    - cron: 0 0 * * SAT

jobs:
  update-deps:
    uses: lvjiaxuan/github-action-templates/.github/workflows/update-deps.yml@main
    with:
      email: [email protected] # Explicitly set `inputs.email`, if `vars.ACTOR_EMAIL` isn't set on repo.

more inputs

Other recommended actions

  1. update-repository-description by @zhengbangbo

About

My frequently used GitHub action templates.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published