Skip to content

Commit

Permalink
Get anthology_id consistently in annotation workflow (#4344)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjpost authored Jan 6, 2025
1 parent 5f910f5 commit 65365fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/annotate-metadata-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,19 @@ jobs:
core.setOutput('valid_json', 'false');
return;
}
core.setOutput('anthology_id', data.anthology_id);
core.setOutput('valid_json', 'true');
core.setOutput('anthology_id', data.anthology_id);
} catch (error) {
core.setOutput('valid_json', 'false');
return;
}
- name: Create comment
if: steps.check-labels.outputs.has_required_labels == 'true' && steps.parse-json.outputs.valid_json == 'true'
uses: actions/github-script@v6
with:
anthology_id: ${{ steps.parse-json.outputs.anthology_id }}
script: |
const anthology_id = core.getInput('anthology_id');
const anthology_id = '${{ steps.parse-json.outputs.anthology_id }}';
const comment = `
Found ACL Anthology entry: https://aclanthology.org/${anthology_id}
Expand Down

0 comments on commit 65365fb

Please sign in to comment.