Skip to content

new posting for this project #55

new posting for this project

new posting for this project #55

Workflow file for this run

name: Copy new issues to another repository
on:
issues:
types: [opened]
jobs:
copy_issue:
runs-on: ubuntu-latest
steps:
- name: Copy title and body
run: |
ISSUE_DATA=$(curl -s -S -H "Authorization: Bearer ${{ secrets.TEST2_FINE_GRAINED }}" \
"https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}")
TITLE=$(echo "$ISSUE_DATA" | jq -r '.title')
BODY=$(echo "$ISSUE_DATA" | jq -r '.body')
echo "{\"title\": \"$TITLE\", \"body\": \"$BODY\"}" > issue.json
curl -s -S -X POST -H "Authorization: Bearer ${{ secrets.A12Y_FINE_GRAINED }}" -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" --data-binary @issue.json https://api.github.com/repos/ElectricNroff/a12y/issues