Skip to content
GitHub action which outputs git metadata like sha, branch, etc to interpolate in a workflow yml or input into other actions
TypeScript Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist
.gitignore
README.md
action.yml
index.ts
package.json
pre-commit.sample
tsconfig.json
yarn.lock

README.md

GitHub action to output git metadata

Usage

name: yo
on:
  push:

jobs:
  yo:
    runs-on: ubuntu-latest
    steps:
      - name: checkout
        uses: actions/checkout@v1
      - name: output git metadata
        id: meta
        uses: shareup/output-git-metadata-action@master
      - name: print debugging info
        run: |
          echo "branch: ${BRANCH}"
        env:
          BRANCH: ${{ steps.meta.outputs.branch }}

Outputs

  • branch
  • issue_number
  • owner
  • repo
  • sha
You can’t perform that action at this time.