From f8dcd299ee9fef7f014e18a1ada640e1a6112c04 Mon Sep 17 00:00:00 2001 From: Nils <32552517+byReqz@users.noreply.github.com> Date: Mon, 25 Jan 2021 15:36:29 +0000 Subject: [PATCH] add actions workflow to pregen hashes --- .github/workflows/main.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..fed63ff --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,24 @@ +name: gethash +on: + push: + paths: + - '.github/workflows/main.yml' + - 'conn.sh' +jobs: + gethash: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v2 + + - name: get hash of script + run: echo $(md5sum conn.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' +