GitHub Actions

Drop a GitStrology reading into your CI workflow — post a daily horoscope to Slack, add an astro-themed header to your README, or run a "cosmic gate" check on PRs.

Quick start

# .github/workflows/daily-horoscope.yml
name: Daily Horoscope

on:
  schedule:
    - cron: "0 8 * * *"
  workflow_dispatch:

jobs:
  horoscope:
    runs-on: ubuntu-latest
    steps:
      - uses: gitstrology/daily-horoscope-action@v1
        with:
          api-key: ${{ secrets.GITSTROLOGY_API_KEY }}
          sign: aries
          # optional: post to Slack
          slack-webhook: ${{ secrets.SLACK_WEBHOOK }}

Inputs

InputRequiredDescription
api-keyYesYour GitStrology API key. Store it as a secret.
signYesZodiac sign for the horoscope.
dateNoDate for the reading. Defaults to today.
slack-webhookNoSlack incoming webhook URL to post the reading.

Outputs

OutputDescription
summaryThe horoscope summary text.
jsonThe full horoscope response as JSON.

Using the output

- uses: gitstrology/daily-horoscope-action@v1
  id: horoscope
  with:
    api-key: ${{ secrets.GITSTROLOGY_API_KEY }}
    sign: aries

- name: Echo
  run: echo "${{ steps.horoscope.outputs.summary }}"

Get a key from the dashboard and add it as a repository secret named GITSTROLOGY_API_KEY.