[chore] Renovate: Update kotlin #25
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Renovate build check | ||
on: | ||
pull_request: | ||
branches: | ||
- 'renovate/**' | ||
push: | ||
branches: | ||
- 'renovate/**' | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
cache: gradle | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: Build with Gradle | ||
run: ./gradlew build | ||
- name: Install GitHub CLI | ||
run: | | ||
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0 | ||
sudo apt-add-repository https://cli.github.com/packages | ||
sudo apt update | ||
sudo apt install gh | ||
- name: Automerge on successful checks | ||
if: github.event_name == 'pull_request' && github.event.action == 'synchronize' | ||
run: | | ||
pr_number=${{ github.event.pull_request.number }} | ||
# Check if all checks passed | ||
checks_passed=$(gh pr checks $pr_number | grep -E '\[✓\]') | ||
if [[ "$checks_passed" != "" ]]; then | ||
# Merge the PR | ||
gh pr merge $pr_number --merge | ||
echo "Automatically merged PR #$pr_number" | ||
else | ||
echo "Checks did not pass for PR #$pr_number. Not merging." | ||
fi | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN } | ||
Check failure on line 49 in .github/workflows/renovate.yml GitHub Actions / Renovate build checkInvalid workflow file
|