Skip to content

📝 Fiscal Sponsorship Agreements [due Jan 17] #751

📝 Fiscal Sponsorship Agreements [due Jan 17]

📝 Fiscal Sponsorship Agreements [due Jan 17] #751

Workflow file for this run

name: Push Voting activity to commonhaus.github.io
on:
discussion_comment:
issue_comment:
workflow_dispatch:
inputs:
comment_id:
description: "Comment id"
type: string
required: true
permissions: {}
jobs:
update-vote:
runs-on: ubuntu-latest
if: github.repository == 'commonhaus/foundation'
permissions:
actions: read
steps:
- name: Bump voting results
env:
GH_TOKEN: ${{ secrets.CF_INTERNAL_VOTES }}
COMMENT_ID: ${{ github.event.comment.node_id }}
INPUT: ${{ github.event.inputs.comment_id }}
SENDER: ${{ github.event.sender.login }}
run: |
if [[ -z "$COMMENT_ID" ]]; then
COMMENT_ID=$INPUT
fi
if [[ -n "$COMMENT_ID" ]]; then
echo "{\"comment_id\": \"${COMMENT_ID}\"}" | gh workflow run -R commonhaus/commonhaus.github.io push-votes.yml --json
echo "{\"comment_id\": \"${COMMENT_ID}\"}" | gh workflow run -R commonhaus/foundation-internal push-votes.yml --json
fi