Skip to content

Commit

Permalink
Updates GA workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Tweener committed Feb 9, 2024
1 parent 0f8ada5 commit 2a6fbd8
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 6 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/buildRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ on:
required: true
workflow_dispatch:

push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
strategy:
Expand Down
52 changes: 52 additions & 0 deletions .github/workflows/checkVersionDependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Weekly check for new versions of dependencies

on:
workflow_dispatch:

schedule:
- cron: '0 9 * * 1' # run every Monday at 9am UTC

jobs:
dependencyUpdates:
name: Check for new versions of dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'zulu'
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Check for new versions of dependencies
run: ./gradlew dependencyUpdates

- name: Adds the content of the list of dependencies to the environment variable
id: get-dependencies-list
run: |
file_output=$(<build/dependencyUpdates/report.txt)
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
echo "DEPENDENCIES_LIST_FILE<<$EOF" >> $GITHUB_OUTPUT
echo "$file_output" >> $GITHUB_OUTPUT
echo "$EOF" >> $GITHUB_OUTPUT
- name: Print the content of the environment variable
run: echo "${{ steps.get-dependencies-list.outputs.DEPENDENCIES_LIST_FILE }}"

- name: Send notification on Slack
uses: rtCamp/[email protected]
if: ${{ success() }}
env:
SLACK_CHANNEL: ${{ vars.SLACK_GITHUB_ACTIONS_CHANNEL_NAME }}
SLACK_COLOR: ${{ job.status }}
SLACK_ICON: ${{ vars.SLACK_GITHUB_ACTIONS_DEPENDENCY_UPDATES_ICON_URL }}
SLACK_MESSAGE: ${{ steps.get-dependencies-list.outputs.DEPENDENCIES_LIST_FILE }}
SLACK_TITLE: Dependencies with outdated versions
SLACK_USERNAME: Dependency Updates
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
MSG_MINIMAL: true
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
with:
arguments: |
${{ matrix.target }}
closeSonatypeStagingRepository
closeAndReleaseSonatypeStagingRepository
-Psigning.gnupg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
-Psigning.gnupg.keyName=${{ secrets.OSSRH_GPG_SECRET_KEY_ID }}
-PsonatypeUsername=${{ secrets.OSSRH_USERNAME }}
Expand Down

0 comments on commit 2a6fbd8

Please sign in to comment.