Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
nvdaes committed Oct 13, 2023
1 parent cb2469e commit c2046ec
Showing 1 changed file with 2 additions and 24 deletions.
26 changes: 2 additions & 24 deletions .github/workflows/checkAndSubmitAddonMetadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,29 +225,7 @@ jobs:
# If no valid result is produced, i.e. no add-on id is found, jq exits with status 4.
# If there is a different error, a different non-zero exit code is used.
exit $? # Exit with the same exit code as jq
- name: Get category id
id: getCatId
if: (${{ success() }} || ${{ failure() }}) && (${{ steps.checkDiscussion.outcome }} == 'failure')
uses: actions/github-script@v6
with:
result-encoding: string
script: |
const query = `query($owner:String!, $name:String!) {
repository(owner:$owner, name:$name){
discussionCategories(first: 1) {
nodes {
id
}
}
}
}`;
const variables = {
owner: context.repo.owner,
name: context.repo.repo
}
const result = await github.graphql(query, variables)
const catId = result.discussionCategories.nodes[0].id
return catId
- name: Create discussion for add-on id
id: createDiscussion
if: (${{ success() }} || ${{ failure() }}) && (${{ steps.checkDiscussion.outcome }} == 'failure')
Expand All @@ -256,7 +234,7 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
repository-id: $GITHUB_REPOSITORY_ID
category-id: ${{ steps.getCatId.outputs.result }}
category-id: 'DIC_kwDODeDxhs4CZ6Q6'
title: Reviews for ${{ steps.getAddonNameAndVersion.outputs.addonName }} add-on
body: |
Community add-on reviews for ${{ steps.getAddonNameAndVersion.outputs.addonName }}.
Expand Down

0 comments on commit c2046ec

Please sign in to comment.