Skip to content

Observe Issues and Pull Requests #146

Observe Issues and Pull Requests

Observe Issues and Pull Requests #146

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='{"owner":"yamada-ui","repo":"yamada-colors"}'
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: |
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 }}