Skip to content

Commit

Permalink
Merge pull request #1 from WordPress/add/post-to-org
Browse files Browse the repository at this point in the history
Update action to post to .ORG
  • Loading branch information
StevenDufresne authored Mar 18, 2021
2 parents bf34b1f + e0021d0 commit cfad20b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,11 @@ jobs:
if: ${{ always() }}
with:
name: Logs
path: ${{ steps.test.outputs.logs }}
path: ${{ steps.test.outputs.logs }}
- name: Post UI Errors
if: github.event.client_payload.trac_priority === 'theme update' ## Only do it for updates for now.
run: |
curl --request POST \
--url 'https://wordpress.org/themes/wp-json/themes/v1/github/${{ github.event.client_payload.theme_slug }}/${{ github.event.client_payload.trac_ticket_id }}' \
--header 'Authorization: Bearer ${{ secrets.ORG_POST_SECRET }}' \
--data-urlencode "@${{ steps.test.outputs.logs }}/ui-check-errors.txt"

0 comments on commit cfad20b

Please sign in to comment.