mirror of
https://github.com/byReqz/stocheck.git
synced 2024-11-22 14:41:15 +00:00
Update main.yml
This commit is contained in:
parent
9bc026b1d0
commit
840abe6a46
30
.github/workflows/main.yml
vendored
30
.github/workflows/main.yml
vendored
@ -1,18 +1,20 @@
|
|||||||
name: gethash
|
name: gethash
|
||||||
on:
|
on: [push]
|
||||||
push:
|
|
||||||
branches: [ main ]
|
|
||||||
workflow_dispatch:
|
|
||||||
jobs:
|
jobs:
|
||||||
getscript:
|
gethash:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout repo
|
||||||
- name: get script
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: gethash
|
- name: get hash of script
|
||||||
uses: DamianReeves/write-file-action@v1.0
|
run: $(md5sum stocheck.sh | cut -c -32) > hash
|
||||||
with:
|
|
||||||
path: /home/runner/work/stocheck/stocheck/hash
|
- name: Commit hash
|
||||||
contents: stocheck.sh | md5sum | cut -c -32
|
uses: EndBug/add-and-commit@v7
|
||||||
write-mode: overwrite
|
with:
|
||||||
|
author_name: actions
|
||||||
|
author_email: nils@byreqz.de
|
||||||
|
message: 'updated hash after commit'
|
||||||
|
add: 'hash'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user