Skip to content

TheNewThinkTank/gh-actions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gh-actions

Reusable GitHub workflows and Actions

Workflows usage examples

usage of release.yml:

Create consuming workflow, e.g. .github/workflows/project-release.yml:

name: Shared-Release-Workflow

on:
  push:
    tags:
      - "[0-9]+.[0-9]+.[0-9]+"
      - "[0-9]+.[0-9]+.[0-9]+a[0-9]+"
      - "[0-9]+.[0-9]+.[0-9]+b[0-9]+"
      - "[0-9]+.[0-9]+.[0-9]+rc[0-9]+"

permissions:
  id-token: write
  contents: write

jobs:
  call-release-workflow:
    uses: TheNewThinkTank/gh-actions/.github/workflows/release.yaml@v1.0.4
    with:
      PACKAGE_NAME: "package-name"
      OWNER: "github-org-or-username"

Actions usage examples

setup-python-poetry:

- name: Setup Python and Poetry
  uses: TheNewThinkTank/gh-actions/.github/actions/setup-python-poetry@v1.0.4
  with:
    python-version: ${{ env.PYTHONVERSION }}

setup-python-uv:

- name: Setup Python and uv
  uses: TheNewThinkTank/gh-actions/.github/actions/setup-python-uv@v1.0.4
  with:
    python-version: '3.11'
    dependency-file: pyproject.toml  # or requirements.txt

compare-pypi-versions:

- name: Compare Versions
  uses: TheNewThinkTank/gh-actions/.github/actions/compare-pypi-versions@v1.0.4
  with:
    package_name: my-package
    new_version: 1.2.3

About

Reusable GitHub workflows and Actions

Resources

License

Stars

Watchers

Forks

Contributors