Files
get_submodule_hash/README.md
T

26 lines
517 B
Markdown
Raw Normal View History

2021-09-18 22:33:59 +02:00
# get_submodule_hash
GitHub action to get the hash of a submodule
2021-09-18 22:39:48 +02:00
## Example workflow
```yaml
name: Getting the hash of the corelib submodule
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get submodule hash
id: get-submodule-hash
2021-09-18 22:43:19 +02:00
uses: 0xFEEDC0DE64/get_submodule_hash@main
2021-09-18 22:39:48 +02:00
with:
submodule: libs/corelib
- name: Print submodule hash
run: echo "hash of submodule is ${{ steps.get-submodule-hash.outputs.hash }}"
```