https://github.com/kenf1/ghrepotag
GitHub action to get a repo's latest release tag commit SHA. Combine with actions cache to monitor/run other actions.
https://github.com/kenf1/ghrepotag
actions github-actions typescript
Last synced: 8 months ago
JSON representation
GitHub action to get a repo's latest release tag commit SHA. Combine with actions cache to monitor/run other actions.
- Host: GitHub
- URL: https://github.com/kenf1/ghrepotag
- Owner: kenf1
- License: gpl-3.0
- Created: 2025-08-03T20:53:04.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-09-10T19:44:58.000Z (10 months ago)
- Last Synced: 2025-09-10T23:38:00.824Z (10 months ago)
- Topics: actions, github-actions, typescript
- Language: TypeScript
- Homepage: https://github.com/marketplace/actions/ghrepotag
- Size: 269 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## ghrepotag
[](https://github.com/kenf1/ghrepotag/tags)
GitHub action to get a repo's latest release tag commit SHA. Combine with actions cache to monitor/run other actions.
### Example
Print latest commit SHA
```
- id: run_action
uses: kenf1/ghrepotag@v0.1.1
with:
org: "neovim"
repo: "neovim"
- name: Print latest-sha output
run: echo "Latest SHA is ${{ steps.run_action.outputs.latest-sha }}"
```
Set cache
```
- name: Add string to cache
id: cache-key
run: echo "cache-value" > cache_file.txt
```
Retrieve cache
```
- name: Restore cached string
id: cache-id
uses: actions/cache@v4
with:
path: cache_file.txt
key: cache-key
```