Skip to content

Commit

Permalink
Merge pull request #4 from vincejv/fix-workflow-for-main
Browse files Browse the repository at this point in the history
Update workflows
  • Loading branch information
vincejv authored Oct 14, 2022
2 parents 8861199 + edf2c51 commit 2e12212
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/package-release-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@ jobs:
deploy:
name: Release artifact
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK 17
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/package-release-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,22 @@ jobs:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}
- name: Prepare release
id: prep_release
run: |
echo "latest_tag=steps.tag_version.outputs.new_tag" >> $GITHUB_ENV
deploy:
name: Release artifact
needs: versioning
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
ref: '${{ env.latest_tag }}'
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK 17
Expand Down

0 comments on commit 2e12212

Please sign in to comment.