Skip to content

silver886/github-actions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Centralized GitHub Actions

Actions

checkout

Checkout repository.

create/pull-request

Create a new branch with current date and a pull request.

Inputs

  • token: GITHUB_TOKEN or a repo scoped Personal Access Token (PAT). 1
  • body: The body of the pull request. 1
  • assignees: A comma or newline separated list of assignees (GitHub usernames). 1
  • reviewers: A comma or newline separated list of reviewers (GitHub usernames) to request a review from. 1

create/release

Inputs

  • name: Gives the release a custom name. Defaults to tag name. 2
  • files: Newline-delimited list of path globs for asset files to upload. 2
  • body_path: Path to load note-worthy description of changes in release from. 2

create/token

Inputs

  • app-id: GitHub App ID. 3
  • private-key: GitHub App private key. 3
  • owner: The owner of the GitHub App installation (defaults to current repository owner). 3
  • repositories: Comma or newline-separated list of repositories to install the GitHub App on (defaults to current repository if owner is unset). 3
  • skip-token-revoke: If truthy, the token will not be revoked when the current job is complete. 3
  • github-api-url: he URL of the GitHub REST API. 3

Outputs

  • token: GitHub installation access token. 3
  • installation-id: GitHub App installation ID. 3
  • app-slug: GitHub App slug. 3

setup/go

Setup Go.

Inputs

  • go-version: The Go version to download (if necessary) and use. Supports semver spec and ranges. Be sure to enclose this option in single quotation marks. 4

setup/nodejs

Setup Node.js.

Inputs

  • node-version: Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0. 5
  • scope: Optional scope for authenticating against scoped registries. Will fall back to the repository owner when using the GitHub Packages registry (https://npm.pkg.github.com/). 5
  • registry-url: Optional registry to set up for auth. Will set the registry in a project level .npmrc and .yarnrc file, and set up auth to read in from env.NODE_AUTH_TOKEN. 5

setup/pnpm

Setup pnpm 10 and clean install dependencies.

time

Get current time.

Outputs

  • date: Current date.
  • time: Current time.
  • rfc3339: Current date and time in RFC3339 format.

Workflows

create-release

Create release.

release-npm

Release npm package.

Inputs

  • test: (Optional) Unit test.

Secrets

  • NPM: NPM token.

release-oci

Release OCI Image.

Inputs

  • registry: (Optional) Hostname for registry. (Default: ghcr.io)
  • username: (Optional) Username for registry. (Default: ${{ github.repository_owner }})
  • containerfile: (Optional) Pathname of a Containerfile. (Default: Containerfile)
  • image_name: (Optional) Image name. (Default: ${{ github.repository }})
  • image_tags: Image tags, in JSON array of string.
  • context: (Optional) Path of the context. (Default: .)
  • build_arg: (Optional) Additional build arguments. (Default: '')

Secrets

  • password: (Optional) Password for registry.

deploy-cloudflare-truenas

Deploy Cloudflare TrueNAS.

Inputs

  • uri: URI for TrueNAS API endpoint.
  • client_id: Client ID for Cloudflare Access.
  • registry: (Optional) Hostname for registry. (Default: ghcr.io)
  • username: (Optional) Username for registry. (Default: '')
  • image_name: (Optional) Image name. (Default: ${{ github.repository }})
  • image_tag: (Optional) Image tag. (Default: latest)
  • apps: App names, in JSON array of string.

Secrets

  • client_secret: Client Secret for Cloudflare Access.
  • api_key: API key for TrueNAS.
  • password: (Optional) Password for registry.

Footnotes

  1. https://github.com/peter-evans/create-pull-request/blob/main/action.yml 2 3 4

  2. https://github.com/softprops/action-gh-release/blob/master/action.yml 2 3

  3. https://github.com/actions/create-github-app-token/blob/main/action.yml 2 3 4 5 6 7 8 9

  4. https://github.com/actions/setup-go/blob/main/action.yml

  5. https://github.com/actions/setup-node/blob/main/action.yml 2 3

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published