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

ci: update badge whenever new interop dashboard is ready #86

Closed
wants to merge 1 commit into from

Conversation

galargh
Copy link
Contributor

@galargh galargh commented Nov 30, 2022

TODO: test

@galargh
Copy link
Contributor Author

galargh commented Dec 1, 2022

@laurentsenta We'll be able to use something like this to publish dashboard - #55

- run: |
in='\[\!\[Interop Dashboard\]\(https\:\/\/github\.com\/libp2p\/test\-plans\/actions\/workflows\/ping\-interop\-dashboard\.yml\/badge\.svg\?branch\=master\)\]\(.*\)'
out="[![Interop Dashboard](https://github.com/libp2p/test-plans/actions/workflows/ping-interop-dashboard.yml/badge.svg?branch=master)](${env.GITHUB_JOB_SUMMARY_URL})"
sed -i '' '#${in}#{out}#' README.md
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we miss things here like using ${{ env.GITHUB ... }} for github substitution, using double quote to allow variable expansion, etc.

I reused your code and updated it with: 55b9be6

@laurentsenta
Copy link
Collaborator

Thanks for sharing @galargh !
We can close this PR, I created the complete feature that reuses this work in #88

I haven't retrieved a valid job_summary_url successfully with the action yet. Could you take a look there?

@p-shahi
Copy link
Member

p-shahi commented Dec 10, 2022

closing in favor of #88

@p-shahi p-shahi closed this Dec 10, 2022
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.

3 participants