-
Notifications
You must be signed in to change notification settings - Fork 5
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
Signal pixel on new config merged #144
base: main
Are you sure you want to change the base?
Conversation
@@ -29,23 +29,4 @@ jobs: | |||
if: github.event.action == 'opened' | |||
with: | |||
repo-token: ${{ secrets.GITHUB_TOKEN }} | |||
message: 'Your PR is hosted at https://staticcdn.duckduckgo.com/remotemessaging/config/staging/android-config.json' | |||
- name: Extract Version from JSON |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing to see here. Just a test I've done to validate this works using android staging workflow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 👍
- name: Trigger Network Request | ||
id: trigger_request | ||
run: | | ||
RESPONSE=$(curl -s -o response.txt -w "%{http_code}" "https://improving.duckduckgo.com/t/m_new_rmf_config_ios?version=${VERSION}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To limit curl output even more you can use the following:
RESPONSE=$(curl -s -o response.txt -w "%{http_code}" "https://improving.duckduckgo.com/t/m_new_rmf_config_ios?version=${VERSION}") | |
RESPONSE=$(curl -fLSs -o /dev/null -w "%{http_code}" "https://improving.duckduckgo.com/t/m_new_rmf_config_ios?version=${VERSION}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Related to: https://app.asana.com/0/1207619243206445/1208965192384904/f
Description:
Updates workflows so they trigger a pixel on any platform config merge.
That can be consumed from grafana and they can be displayed as labels where needed.