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
| Input | Required | Description |
|---|---|---|
api-key | Yes | Your GitStrology API key. Store it as a secret. |
sign | Yes | Zodiac sign for the horoscope. |
date | No | Date for the reading. Defaults to today. |
slack-webhook | No | Slack incoming webhook URL to post the reading. |
Outputs
| Output | Description |
|---|---|
summary | The horoscope summary text. |
json | The 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.