Skip to content

v2024.2.1

v2024.2.1 #33

Workflow file for this run

name: 'post-release'
on:
release:
types: [released]
jobs:
github-actions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
if: github.event.release.name != 'nightly'
with:
repository: 'jetbrains/qodana-action'
token: ${{ secrets.GH_PAT }}
fetch-depth: 0
- name: Upgrade and send PR
if: github.event.release.name != 'nightly'
run: |
cd common && node update-cli.js && cd ..
npm ci
npm run build && npm run -w scan package && npm run -w vsts package
git config user.name qodana-bot
git config user.email qodana-support@jetbrains.com
git checkout -b next
git add .
git commit -m ":arrow_up: Update \`qodana\` to \`${{ github.event.release.name }}\`"
git push origin next --force
gh pr create --repo jetbrains/qodana-action --base main --head next --title ":arrow_up: Update \`qodana\` to the \`${{ github.event.release.name }}\`" --body "This automated PR updates \`qodana\` to the latest version. Please review and merge it if everything is fine."
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
winget:
runs-on: ubuntu-latest
if: github.event.release.name != 'nightly'
steps:
- run: >
set -e &&
echo "${SHA256} *komac.tar.gz" > shasum &&
curl -fSsL https://github.com/russellbanks/Komac/releases/download/v2.3.0/komac-2.3.0-x86_64-unknown-linux-gnu.tar.gz -o komac.tar.gz &&
sha256sum --check --status shasum &&
tar -xzf komac.tar.gz && chmod +x komac
env:
SHA256: 84eaa5e5344c8b1ffbab9cb78d388310d617a84727a7c3be3c562c8d663d51c4
- run: |
export VERSION=${{ github.event.release.name }}
./komac update \
'JetBrains.QodanaCLI' \
--version $(echo "$VERSION" | sed 's/^v//') \
--urls https://github.com/JetBrains/qodana-cli/releases/download/$VERSION/qodana_windows_arm64.exe https://github.com/JetBrains/qodana-cli/releases/download/$VERSION/qodana_windows_x86_64.exe \
--submit
env:
GITHUB_TOKEN: ${{ secrets.WINGET_GH_PAT_TOKEN }}