Skip to content

GitHub Actions Plugin to get a GitHub user's email based on their username (without fallback)

License

Notifications You must be signed in to change notification settings

ndelangen/email-by-username-action

 
 

Repository files navigation

email-by-username-action

GitHub Actions Plugin to get a GitHub user's email based on their username

Usage

Takes in a username & Github personal access token as an input.

Example

name: Test Get Email from Github Username
on:
  workflow_dispatch:

jobs:
  get_user_email:
    runs-on: ubuntu-latest
    name: A job to get a users email
    steps:
      - name: get email
        id: test
        uses: ndelangen/email-by-username-action@main
        continue-on-error: true
        with:
          github-username: 'ndelangen'
          token: ${{ secrets.GITHUB_TOKEN }}

      # Use the output from the `test` step
      - name: Print the found email
        run: echo "The email is ${{ steps.test.outputs.email || '[email protected]' }}"

For more examples, see: https://github.com/ndelangen/email-by-username-action/blob/main/.github/workflows/automated_testing.yml

About

GitHub Actions Plugin to get a GitHub user's email based on their username (without fallback)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 83.1%
  • JavaScript 16.9%