Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add handling for GA script file in output.yml #340

Merged
merged 1 commit into from
Dec 7, 2021

Conversation

cansavvy
Copy link
Collaborator

@cansavvy cansavvy commented Dec 3, 2021

Purpose/implementation Section

What changes are being implemented in this Pull Request?

This will close #337

It's not a very elegant solution, but it works. I just have the transfer-rendered.yml delete the GAScript.html string in _output.yml.

@@ -106,6 +106,12 @@ jobs:
curl --fail -s ${base_url}/${line} > ${line}
done < "$input"


# Get rid of GA Script spec in output yaml
sed 's/GA_Script.Rhtml,//' _output.yml > output.txt
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sed had trouble going straight to the yml file? Not sure if I missed how to do this more elegantly, I was trying to do this step according to their docs but could get around creating this intermediate txt file. ¯\(ツ)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, that seems reasonable for now

@github-actions
Copy link
Contributor

github-actions bot commented Dec 3, 2021

The latest commit did not produce rendering changes.

Updated at 2021-12-03 with changes from 81c7b99

@cansavvy
Copy link
Collaborator Author

cansavvy commented Dec 6, 2021

This works, so I'm going to merge it. We should probably think about doing another release soon since this is a un-breaking change.

@cansavvy cansavvy merged commit 10f118b into main Dec 7, 2021
@cansavvy cansavvy deleted the cansavvy/deal-with-GA branch December 7, 2021 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

What to do with GAScript spec in output.yml in _Leanpub repo
2 participants