Skip to content

Observe Issues and Pull Requests #9

Observe Issues and Pull Requests

Observe Issues and Pull Requests #9

name: Observe Issues and Pull Requests
on:
schedule:
- cron: "0 9 * * *"
jobs:
issue-and-pull-request:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install
uses: ./.github/composite-actions/install
- name: Generate signature
id: generate_signature
run: |
body='{"repo": "yamada-ui", "owner": "yamada-components"}'
echo "::set-output name=body::$body"
signature=$(echo -n $body | openssl dgst -sha256 -hmac "${{ secrets.API_SECRET }}" | sed 's/^.* //')
echo "::set-output name=signature::$signature"
- name: Update issues and pull requests
run: |
body='{"repo": "yamada-ui", "owner": "yamada-ui"}'
curl -X POST \
-H "Content-Type: application/json" \
-H "x-signature: sha256=${{ steps.generate_signature.outputs.signature }}" \
-d '${{ steps.generate_signature.outputs.body }}' \
${{ vars.OBSERVE_API_URL }}