From e39519781f938b177bb2aa32e5fe63de0e5a802c Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Wed, 2 Mar 2022 11:50:57 -0600 Subject: [PATCH] Add github actions --- .github/dependabot.yml | 7 +++++++ .github/labeler.yml | 23 +++++++++++++++++++++++ .github/workflows/dependabot-issues.yml | 9 +++++++++ .github/workflows/label.yml | 22 ++++++++++++++++++++++ .github/workflows/shell-linter.yml | 11 +++++++++++ CODEOWNERS | 6 ++++++ 6 files changed, 78 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/dependabot-issues.yml create mode 100644 .github/workflows/label.yml create mode 100644 .github/workflows/shell-linter.yml create mode 100644 CODEOWNERS diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..583decf --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +version: 2 +updates: + # Maintain dependencies for GitHub Actions + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" \ No newline at end of file diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..de40377 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,23 @@ +repo: +- '*' + +GitHub-Action: +- .github/workflows/* + +Configs: +- configs/**/* + +Package-Files: +- pkg-files/**/* + +scripts: +- scripts/**/* + +debug: +- scripts/debug/**/* + +helpers: +- scripts/helpers/**/* + +installers: +- scripts/installers/**/* \ No newline at end of file diff --git a/.github/workflows/dependabot-issues.yml b/.github/workflows/dependabot-issues.yml new file mode 100644 index 0000000..99336d1 --- /dev/null +++ b/.github/workflows/dependabot-issues.yml @@ -0,0 +1,9 @@ +on: [pull_request] +name: Dependabot-Issue + +jobs: + dependabot-issue: + runs-on: ubuntu-latest + steps: + - name: Dependabot issue for PRs + uses: goatandsheep/dependabot-issue-action@v1.0.1 diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml new file mode 100644 index 0000000..ef3d7d5 --- /dev/null +++ b/.github/workflows/label.yml @@ -0,0 +1,22 @@ +# This workflow will triage pull requests and apply a label based on the +# paths that are modified in the pull request. +# +# To use this workflow, you will need to set up a .github/labeler.yml +# file with configuration. For more information, see: +# https://github.com/actions/labeler + +name: Labeler +on: [pull_request] + +jobs: + label: + + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + + steps: + - uses: actions/labeler@v4 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file diff --git a/.github/workflows/shell-linter.yml b/.github/workflows/shell-linter.yml new file mode 100644 index 0000000..052dad7 --- /dev/null +++ b/.github/workflows/shell-linter.yml @@ -0,0 +1,11 @@ +on: [pull_request] +name: Shell-Linter + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v1 + - name: Run ShellCheck + uses: azohra/shell-linter@latest \ No newline at end of file diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 0000000..0af880c --- /dev/null +++ b/CODEOWNERS @@ -0,0 +1,6 @@ +# Lines starting with '#' are comments. +# Each line is a file pattern followed by one or more owners. +# Order is important. The last matching pattern has the most precedence. + +# These owners will be the default owners for everything in the repo. +* @ChrisTitusTech \ No newline at end of file