📝 Split trademark policy & guidelines #706
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: 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 |