From a0b39f57537cca60b3198cf05bb7ccbe13c1c5ec Mon Sep 17 00:00:00 2001 From: alterNERDtive Date: Mon, 19 Jun 2023 08:43:19 +0200 Subject: [PATCH] .github stuff --- .github/FUNDING.yml | 2 ++ .github/dependabot.yaml | 7 +++++++ .github/workflows/auto-pull-request.yaml | 20 ++++++++++++++++++++ .github/workflows/create-release.yaml | 23 +++++++++++++++++++++++ 4 files changed, 52 insertions(+) create mode 100644 .github/FUNDING.yml create mode 100644 .github/dependabot.yaml create mode 100644 .github/workflows/auto-pull-request.yaml create mode 100644 .github/workflows/create-release.yaml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..969b701 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,2 @@ +github: alterNERDtive +ko_fi: alterNERDtive diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml new file mode 100644 index 0000000..9ea9bc9 --- /dev/null +++ b/.github/dependabot.yaml @@ -0,0 +1,7 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + target-branch: "develop" + schedule: + interval: "daily" diff --git a/.github/workflows/auto-pull-request.yaml b/.github/workflows/auto-pull-request.yaml new file mode 100644 index 0000000..e314be9 --- /dev/null +++ b/.github/workflows/auto-pull-request.yaml @@ -0,0 +1,20 @@ +name: Pull Request on Branch Push + +on: + push: + branches-ignore: + - develop + - release + +jobs: + auto-pull-request: + name: Open pull request + runs-on: ubuntu-latest + steps: + - name: pull-request-action + uses: vsoch/pull-request-action@1.0.19 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PULL_REQUEST_BRANCH: "develop" + PULL_REQUEST_DRAFT: true + PASS_IF_EXISTS: true diff --git a/.github/workflows/create-release.yaml b/.github/workflows/create-release.yaml new file mode 100644 index 0000000..dc4d752 --- /dev/null +++ b/.github/workflows/create-release.yaml @@ -0,0 +1,23 @@ +name: Create release on tag push + +on: + push: + tags: + - 'release/*' + +jobs: + build: + name: Build the_vault-tweaks + runs-on: ubuntu-latest + permissions: + contents: write + + steps: + - name: Checkout source code + uses: actions/checkout@v3 + + - name: Draft release + uses: ncipollo/release-action@v1 + with: + bodyFile: "CHANGELOG.md" + draft: true