Observe Issues and Pull Requests #146
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |