diff --git a/.github/workflows/dev-deployment.yml b/.github/workflows/cd-dev.yml similarity index 99% rename from .github/workflows/dev-deployment.yml rename to .github/workflows/cd-dev.yml index 10c255a..f1d0a74 100644 --- a/.github/workflows/dev-deployment.yml +++ b/.github/workflows/cd-dev.yml @@ -14,9 +14,12 @@ jobs: runs-on: ubuntu-latest outputs: image_tag: ${{ steps.generate_tag.outputs.tag }} + steps: - name: checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Set up JDK 21 uses: actions/setup-java@v4 @@ -37,7 +40,6 @@ jobs: restore-keys: | ${{ runner.os }}-gradle- - - name: Grant execute permission for gradlew run: chmod +x ./gradlew shell: bash diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d83a882..e9e1700 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,10 @@ name: Java CI with Gradle on: pull_request: - branches: [ "main", "develop" ] - paths: - - "src/**" + branches: [ main, develop ] + +permissions: + contents: read jobs: build: