Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

getPopsure/github-workflows

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Feather Github Workflows

This repository contains a collection of GitHub Workflows that can be reused across repos.

Usage

To use a workflow in your project, simply create an new job and add the full path of the workflow you want to use with the uses keyword:

jobs:
  update_release_draft:
    uses: getPopsure/github-workflows/.github/workflows/generate-release-draft.yml@v0.1.0

Make sure to use the latest version of the github-workflows repo adding the @v suffix.

⚠️ Avoid using the @main branch of the github-workflows repo, as this branch can potentially be unstable.

Example usage

The following configuration will trigger the generate-release-draft worfklow everytime a pull request is open.

name: Generate release draft

on:
  pull_request:
    branches:
      - main

jobs:
  update_release_draft:
    uses: getPopsure/github-workflows/.github/workflows/generate-release-draft.yml@v0.1.0

Using inputs and secrets

Some workflows require additional information or secrets to run. You can use the with or secrets keywords inside a job to pass the required information.

jobs:
  lint:
    uses: getPopsure/github-workflows/.github/workflows/lint.yml@v0.1.0
    secrets:
      NPM_TOKEN: ${{ secrets.NPM_PKG_GITHUB_TOKEN }}

You can learn more on the GitHub website.

Contributing

If you have duplicated workflows across different projects, feel free to open a PR to include them here. This project uses SemVer for versioning.

Next steps

About

A centralised place to store GitHub Workflows

Resources

Stars

Watchers

Forks

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.