Skip to content
clock

GitHub Action

Are They Awake Yet?

v0.1.0 Latest version

Are They Awake Yet?

clock

Are They Awake Yet?

Ask if a user is awake and find out what the time is in the location they specify in their profile

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Are They Awake Yet?

uses: hummusonrails/awake-yet-action@v0.1.0

Learn more about this action in hummusonrails/awake-yet-action

Choose a version

Are They Awake Yet? GitHub Action

What time is it for the person you are tagging in a GitHub issue or pull request? This action will tell you the time and date for the user you mention in an issue or pull request.

Usage

To use this action in your project, please follow the instructions on GitHub for initiating a workflows folder structure in your repository, if you have not done so already.

Once you have your workflow structure set up, you can create a new workflow YAML file inside /.github/workflows/ that contains the following:

name: Are They Awake Yet
on: [issues, pull_request]
jobs:
  are-they-awake-yet:
    runs-on: ubuntu-latest
    steps:
    - name: are-they-awake-yet
      uses: benhayehudi/awake-yet-action@master
    env:
      GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
      GOOGLE_API_KEY: "${{ secrets.GOOGLE_API_KEY }}"

The last step is you need to add your Google Maps API key to your GitHub repository secrets configuration. Follow this guide on how to do so. You need to save it with the following key: GOOGLE_API_KEY.

At this point, any opened, reopened, created or edited event action will trigger the action to post a comment either with the requested user's date and location in their location or letting you know that they do not specify a location in their profile..

License

This project is under the MIT License