Skip to content

Commit

Permalink
go back to file_name output
Browse files Browse the repository at this point in the history
  • Loading branch information
keifgwinn committed Nov 11, 2022
1 parent 148bcfa commit 6b4fbf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,21 +115,21 @@ runs:
}
shell: bash
run: |
set -ex
# Fetch project fields metadata
if [ ! -f "$FILE_NAME" ] || [ "$OPERATION" == "read" ]; then
gh api graphql -f query="$QUERY" -F issue_id="$CONTENT_ID" -F field_name="$FIELD_NAME" > "$FILE_NAME"
else
echo "Using cached project fields metadata from '$FILE_NAME'"
fi
echo "file_name=$FILE_NAME" >> $GITHUB_OUTPUT
- name: Parse content ID, value and title
id: parse_content_metadata
shell: bash
env:
PROJECT_NUMBER: ${{ inputs.project_number }}
OWNER: ${{ inputs.organization }}
FILE_NAME: organization-${{ inputs.organization }}-issue-${{ inputs.content_id }}.json
FILE_NAME: ${{ steps.fetch_content_metadata.outputs.file_name }}
run: |
# Parse content metadata
item_id=$(jq -r '.data.node.projectItems.nodes | .[] | select(.project.number==($PROJECT_NUMBER|fromjson) and .project.owner.login==$OWNER).id' "$FILE_NAME" --arg OWNER "$OWNER" --arg PROJECT_NUMBER "$PROJECT_NUMBER")
Expand Down

0 comments on commit 6b4fbf9

Please sign in to comment.