Skip to content

Commit

Permalink
ci(gh actions): minor reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiSchwarz-cnic committed Nov 9, 2023
1 parent e853432 commit 9bf6512
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 16 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/auto-merge-dependabot-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@ jobs:
contents: read

dependabot:
if: ${{ github.actor == 'dependabot[bot]' }}
name: Auto-merge Dependabot PR
runs-on: ${{ vars.RTLDEV_MW_CI_OS }}
needs: tests
permissions:
contents: write
issues: write
pull-requests: write

if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
Expand All @@ -34,4 +32,4 @@ jobs:
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.RTLDEV_MW_CI_TOKEN}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7 changes: 3 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@ jobs:
packages: write

release:
name: Release @ ubuntu-latest
name: Release
runs-on: ${{ vars.RTLDEV_MW_CI_OS }}
needs: build
permissions:
contents: write
issues: write
deployments: write

needs: build
deployments: write
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,11 @@ on:
workflow_call:

jobs:
# separate job to set as required in branch protection,
# as the build names above change each time Node versions change
lint:
name: 🧪 Linting
runs-on: ${{ vars.RTLDEV_MW_CI_OS }}
permissions:
contents: read

steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -29,17 +26,14 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

test_matrix:
name: 🧪 Testing
runs-on: ${{ vars.RTLDEV_MW_CI_OS }}
needs: lint
permissions:
contents: read

strategy:
matrix:
java-version: ${{ fromJson(vars.RTLDEV_MW_CI_JAVA_MATRIX) }}

name: 🧪 Testing
needs: lint

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit 9bf6512

Please sign in to comment.