Skip to content

Commit

Permalink
cleaning up actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dkontyko committed Sep 23, 2023
1 parent de36272 commit e2d0884
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 20 deletions.
14 changes: 1 addition & 13 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,7 @@ env:

jobs:
changes:
runs-on: ubuntu-latest
permissions:
pull-requests: read
outputs:
function-app: ${{ steps.filter.outputs.function-app }}
steps:
- name: filter
id: filter
uses: dorny/paths-filter@v2
with:
filters: |
function-app:
- 'FunctionApp/**'
uses: ./.github/workflows/filter-changes.yml

analyze:
needs: changes
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/filter-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:
outputs:
function-app: ${{ steps.filter.outputs.function-app }}
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@v4

- name: filter
id: filter
uses: dorny/paths-filter@v2
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,8 @@ env:
JAVA_VERSION: '17' # set this to the java version to use

jobs:
changes:
uses: ./.github/workflows/filter-changes.yml


build:
needs: changes
if: ${{ needs.changes.outputs.function-app == 'true' }}
runs-on: windows-latest
steps:
- name: 'Checkout GitHub Action'
Expand All @@ -39,5 +35,4 @@ jobs:
mvn clean package
popd
- name: Build with Maven
run: mvn -B package --file ${{ env.PACKAGE_DIRECTORY }}/pom.xml

run: mvn -B package --file ${{ env.PACKAGE_DIRECTORY }}/pom.xml

0 comments on commit e2d0884

Please sign in to comment.