From 3b314db5eee341fab635481336202d164a17a1d6 Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Sat, 23 Sep 2023 17:10:24 +0200 Subject: [PATCH] Meta: Setup simple actions This action will check if the hashes of the files are correct --- .forgejo/workflows/main.yml | 25 +++++++++++++++++++++++++ .packwizignore | 3 +++ 2 files changed, 28 insertions(+) create mode 100644 .forgejo/workflows/main.yml diff --git a/.forgejo/workflows/main.yml b/.forgejo/workflows/main.yml new file mode 100644 index 0000000..ec69f62 --- /dev/null +++ b/.forgejo/workflows/main.yml @@ -0,0 +1,25 @@ +on: + pull_request: + push: + branches: + - "dev" + - "feature/*" + +jobs: + check-hashes: + runs-on: docker + steps: + - uses: https://code.forgejo.org/actions/checkout@v3 + - uses: https://code.forgejo.org/actions/setup-go@v4 + with: + go-version: 1.21 + check-latest: true + - name: Setup Packwiz + if: success() + run: go install github.com/packwiz/packwiz@latest + - name: Refresh packwiz index file + if: success() + run: packwiz refresh + - name: Check for potential differences + if: success() + run: git diff --exit-code pack.toml index.toml diff --git a/.packwizignore b/.packwizignore index 13af7fa..46b74cf 100644 --- a/.packwizignore +++ b/.packwizignore @@ -2,3 +2,6 @@ # Exclude developer settings /.vscode + +# Exclude forgejo +/.forgejo