Skip to content

♻️ Reworked Trademark Policy [due Oct 10] #565

♻️ Reworked Trademark Policy [due Oct 10]

♻️ Reworked Trademark Policy [due Oct 10] #565

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
elif [[ "$SENDER" != "haus-rules-bot[bot]" ]]; then
echo "Comment skipped. Not bot sender"
COMMENT_ID=
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