From 840abe6a4651f39d2ac0800d15238b67fa739ef3 Mon Sep 17 00:00:00 2001 From: Nils <32552517+byReqz@users.noreply.github.com> Date: Mon, 25 Jan 2021 15:10:38 +0000 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3d558f9..3ea68c1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,18 +1,20 @@ name: gethash -on: - push: - branches: [ main ] - workflow_dispatch: +on: [push] jobs: - getscript: + gethash: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: get script - -- name: gethash - uses: DamianReeves/write-file-action@v1.0 - with: - path: /home/runner/work/stocheck/stocheck/hash - contents: stocheck.sh | md5sum | cut -c -32 - write-mode: overwrite + - name: Checkout repo + uses: actions/checkout@v2 + + - name: get hash of script + run: $(md5sum stocheck.sh | cut -c -32) > hash + + - 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' +