Skip to content

Commit

Permalink
dbeaver/dbeaver-devops#1525 simplify workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Wroud committed Oct 14, 2024
1 parent fdd4307 commit 2f84584
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/java-checkstyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,9 @@ jobs:
repository: dbeaver/dbeaver-common
path: dbeaver-config

- name: Copy checkstyle config
run: cp dbeaver-config/dbeaver-checkstyle-config.xml ./dbeaver-checkstyle-config.xml

- name: Remove checkstyle config directory
run: rm -rf dbeaver-config
- run: |
cp dbeaver-config/dbeaver-checkstyle-config.xml ./dbeaver-checkstyle-config.xml
rm -rf dbeaver-config
- uses: dbeaver/action-java-checkstyle@master
with:
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/mvn-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,18 @@ jobs:
- name: Set repository path variable
run: echo "CHECKOUT_PATH=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV

- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
path: ${{ env.CHECKOUT_PATH || '.' }}

- name: Clone Deps Repositories
- uses: dbeaver/github-actions/clone-repositories@devel
if: ${{ inputs.project-deps != null }}
uses: dbeaver/github-actions/clone-repositories@devel
with:
project_deps_path: ${{ inputs.project-deps }}
token: ${{ secrets.DEVOPS_ISSUE_RO_TOKEN }}

- uses: dbeaver/github-actions/install-maven@devel

- name: Set up JDK 17
uses: actions/setup-java@v4
- uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"
Expand Down

0 comments on commit 2f84584

Please sign in to comment.