Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/automated-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ on:
jobs:
release:
name: Release
uses: SonarSource/release-github-actions/.github/workflows/automated-release.yml@v1
uses: SonarSource/release-github-actions/.github/workflows/automated-release.yml@tt/slack
permissions:
statuses: read
id-token: write
Expand All @@ -70,3 +70,4 @@ jobs:
issue-categories: "Feature,False Positive,False Negative,Bug,Security,Maintenance"
bump-version: ${{ github.event.inputs.bump-version == 'true' }}
bump-version-normalize: true
# check-releasability: false
53 changes: 11 additions & 42 deletions .github/workflows/releasability.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,53 +2,22 @@ name: Releasability status

on:
workflow_dispatch:
# Inputs the workflow accepts.
inputs:
version:
description: Optional; Used to specify the version to check, otherwise pulls the latest master version from artifactory.
required: false

jobs:
releasability-job:
name: Releasability check
slack-job:
name: Test Slack
runs-on: github-ubuntu-latest-s
permissions:
id-token: write # required by SonarSource/vault-action-wrapper
contents: read # required by checkout
steps:
- name: Retrieve Vault Secrets
id: secrets
uses: SonarSource/vault-action-wrapper@v3
- name: Send Slack
uses: SonarSource/release-github-actions/slack-message@tt/slack
with:
secrets: |
development/artifactory/token/{REPO_OWNER_NAME_DASH}-private-reader access_token | ARTIFACTORY_PASSWORD;
development/artifactory/token/{REPO_OWNER_NAME_DASH}-private-reader role | ARTIFACTORY_ROLE;
development/kv/data/repox url | ARTIFACTORY_URL;

- name: Get the latest available version number
id: latest-version
env:
ARTIFACTORY_PRIVATE_USERNAME: vault-${{ fromJSON(steps.secrets.outputs.vault).ARTIFACTORY_ROLE }}
ARTIFACTORY_PRIVATE_PASSWORD: ${{ fromJSON(steps.secrets.outputs.vault).ARTIFACTORY_PASSWORD }}
ARTIFACTORY_URL: ${{ fromJSON(steps.secrets.outputs.vault).ARTIFACTORY_URL }}
REPO: sonarsource-public-builds
GROUP_ID: org.sonarsource.slang
ARTIFACT_ID: sonar-ruby-plugin
run: |
if [[ -z "${{ github.event.inputs.version }}" ]]; then
echo "version not provided, pulling latest version from $REPO."
echo LATEST_VERSION=$(curl -s -u ${ARTIFACTORY_PRIVATE_USERNAME}:${ARTIFACTORY_PRIVATE_PASSWORD} \
"${ARTIFACTORY_URL}/api/search/latestVersion?g=${GROUP_ID}&a=${ARTIFACT_ID}&repos=${REPO}") >> "$GITHUB_OUTPUT"
else
echo "version is provided, using its value: ${{ github.event.inputs.version }}."
echo "LATEST_VERSION=${{ github.event.inputs.version }}" >> "$GITHUB_OUTPUT"
fi

- uses: SonarSource/gh-action_releasability@v3
id: releasability
with:
branch: ${{ github.ref_name }}
commit-sha: ${{ github.sha }}
organization: ${{ github.repository_owner }}
repository: ${{ github.event.repository.name }}
version: ${{ steps.latest-version.outputs.LATEST_VERSION }}
channel: 'tomasz-tylenda-test'
message-markdown: |
# Hello World!
This is a test message from GitHub Actions.
- one
- two
- three
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group=org.sonarsource.slang
version=1.23.0-SNAPSHOT
version=1.24.0-SNAPSHOT
description=Code Analyzer for Ruby
projectTitle=Ruby
org.gradle.jvmargs=-XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -Xms256m -Xmx1024m
Expand Down
Loading