actions / cache

Cache dependencies and build outputs in GitHub Actions
MIT License
4.49k stars 1.2k forks source link

Fix broken links to Restore and Save Actions in README.md #1259

Closed knkarthik closed 11 months ago

knkarthik commented 11 months ago

Fix broken links to Restore and Save Actions in README.md

Description

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

Checklist:

miparnisari commented 11 months ago

please merge this!!

muzimuzhi commented 11 months ago

I find these two links work on both

@knkarthik Could you point out in which case they are broken?

knkarthik commented 11 months ago

@muzimuzhi Oh, that's weird. https://github.com/actions/cache?tab=readme-ov-file#cache-action wasn't working for me. I will close this PR then 🤷‍♂️ .

muzimuzhi commented 11 months ago

@knkarthik Which browser are you using? Maybe the behavior is browser specific.

The markdown snippet https://github.com/actions/cache/blob/704facf57e6136b1bc63b828d79edcd491f0ee84/README.md?plain=1#L5-L7 is parsed to HTML

<blockquote>
<p dir="auto">Two other actions are available in addition to the primary <code>cache</code> action:</p>
<ul dir="auto">
<li><a href="/actions/cache/blob/main/restore/README.md">Restore action</a></li>
<li><a href="/actions/cache/blob/main/save/README.md">Save action</a></li>
</ul>
</blockquote>

where /actions/cache/blob/main/restore/README.md and /actions/cache/blob/main/base/README.md are both valid relative URLs, see for example MDN doc for <a> element.

miparnisari commented 11 months ago

@muzimuzhi Oh, that's weird. https://github.com/actions/cache?tab=readme-ov-file#cache-action wasn't working for me. I will close this PR then 🤷‍♂️ .

I swear I had the same issue a few days ago and now it works just fine even though the README hasn't been touched. I don't get it 😆