2021-01-25 14:49:28 +00:00
|
|
|
name: gethash
|
2021-01-25 15:10:38 +00:00
|
|
|
on: [push]
|
2021-01-25 14:49:28 +00:00
|
|
|
jobs:
|
2021-01-25 15:10:38 +00:00
|
|
|
gethash:
|
2021-01-25 14:49:28 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-01-25 15:10:38 +00:00
|
|
|
- name: Checkout repo
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: get hash of script
|
2021-01-25 15:11:53 +00:00
|
|
|
run: echo $(md5sum stocheck.sh | cut -c -32) > hash
|
2021-01-25 15:10:38 +00:00
|
|
|
|
|
|
|
- name: Commit hash
|
|
|
|
uses: EndBug/add-and-commit@v7
|
|
|
|
with:
|
|
|
|
author_name: actions
|
|
|
|
author_email: nils@byreqz.de
|
|
|
|
message: 'updated hash after commit'
|
|
|
|
add: 'hash'
|
|
|
|
|