action-repository-meta

Github Action exposes useful metadata as environment variable which can be called / used in a workflow

MIT License

Stars
16

Bot releases are hidden (Show)

action-repository-meta - 2.2 Latest Release

Published by varunsridharan almost 2 years ago

  • Updated Node12 To Node16
action-repository-meta - 2.0

Published by varunsridharan almost 4 years ago

Migrated To NodeJS To improve the speed

New Variables

ENV NAME Description Example
GITHUB_REF_SLUG The slug of the branch or tag ref that triggered the workflow (i.e. slug of refs/heads/feat/feature-branch-1 ). If neither a branch or tag is available for the event type, the variable will not exist. refs-heads-feat-feature-branch-1
GITHUB_REF_NAME The branch or tag name that triggered the workflow. If neither a branch or tag is available for the event type, the variable will not exist. feat/feature-branch-1
GITHUB_REF_NAME_SLUG The slug of the branch or tag name that triggered the workflow. If neither a branch or tag is available for the event type, the variable will not exist. feat-feature-branch-1
action-repository-meta - 1.4

Published by varunsridharan almost 4 years ago

  • Option to fetch meta data for custom repository

New Variables

ENV NAME Description Example
REPOSITORY_IS_ARCHIVED sets to true if its a archived repo true
REPOSITORY_IS_DISABLED sets to true if its a disabled repo true
REPOSITORY_IS_TEMPLATE sets to true if its a template repo true
OWNER_PROFILE Provides Github's Profile URL https://github.com/${REPOSITORY_OWNER}
REPOSITORY_CONTENTS_REPORTS_ENABLED Set to true if Contents Reports Enabled in the repository false
REPOSITORY_CODE_OF_CONDUCT_URL Provide CODE_OF_CONDUCT.md file's URL https://github.com/{owner}/{repo}/blob/{default_branch}/CODE_OF_CONDUCT.md
REPOSITORY_CONTRIBUTING_URL Provide CONTRIBUTING.md file's URL https://github.com/{owner}/{repo}/blob/{default_branch}/CONTRIBUTING.md
REPOSITORY_LICENSE Name of the LICENSE used in the repo MIT License
REPOSITORY_LICENSE_URL Provide LICENSE file's URL https://github.com/{owner}/{repo}/blob/{default_branch}/LICENSE
REPOSITORY_LICENSE_SLUG License's SLUG mit
REPOSITORY_LICENSE_SPDX_ID Name Based On SPDX specification MIT
REPOSITORY_README_URL Provides README.md file's URL https://github.com/{owner}/{repo}/blob/{default_branch}/README.md
REPOSITORY_HAS_ISSUES Value set to true if ISSUES feature is enabled true
REPOSITORY_HAS_PROJECTS Value set to true if PROJECTS feature is enabled true
REPOSITORY_HAS_DOWNLOADS Value set to true if DOWNLOADS feature is enabled true
REPOSITORY_HAS_WIKI Value set to true if WIKI feature is enabled true
REPOSITORY_HAS_PAGES Value set to true if PAGES feature is enabled true
action-repository-meta - 1.3.2

Published by varunsridharan almost 4 years ago

Changed

  • Updated Docker Image From php:cli-alpine to varunsridharan/actions-alpine-php:latest
action-repository-meta - 1.3.1

Published by varunsridharan about 4 years ago

New Repository Commits Related Variables

ENV NAME Description Example
RELEASE_VERSION provides branch name which is set as default Branch OR Comment Hash OR Version Number
  • USING RELEASE_VERSION in normal comment will provide Commit Hash and if used in a taged version then it will provide the tag value vX.X.X
action-repository-meta - 1.3

Published by varunsridharan about 4 years ago

New Repository Related Variables

ENV NAME Description Example
REPOSITORY_GIT_URL Provides Repository GIT URL git://github.com/xxx/xxx.git
REPOSITORY_SSH_URL Provides Repository SSH URL [email protected]:xxx/xxx.git
REPOSITORY_WATCHERS_COUNT Provides Repository Watchers Count 0
REPOSITORY_STARGAZERS_COUNT Provides Repository Stars Count 0
REPOSITORY_FORKS_COUNT Provides Repository Forks Count 0
REPOSITORY_OWNER Extracts Owner Name For The Current Repository myname/test-repo => myname
OWNER_PROFILE Provides Github's Profile URL https://github.com/${REPOSITORY_OWNER}
OWNER_TYPE Value is set to Organization if current repository belongs to a Organization if not its set to User Organization / User
IS_OWNER_ORGANIZATION Set to Yes or No Based on OWNER_TYPE value no
IS_OWNER_USER Set to Yes or No Based on OWNER_TYPE value yes
action-repository-meta - 1.2

Published by varunsridharan about 4 years ago

Fixed

set-env removed the usage and migrated to new environment files

action-repository-meta - 1.1

Published by varunsridharan over 4 years ago

Added

  • Repository Topics Are now available as ENV Variable REPOSITORY_TOPICS
action-repository-meta - 1.0

Published by varunsridharan over 4 years ago

First Release

Package Rankings
Top 5.92% on Github actions