feat: Link to latest version on 404 hub downloads (#423) #395
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: release-please | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release-please: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: googleapis/release-please-action@v4 | |
id: release | |
with: | |
token: ${{ secrets.GH_CQ_BOT }} | |
- name: Parse semver string | |
if: steps.release.outputs.release_created | |
id: semver_parser | |
uses: booxmedialtd/ws-action-parse-semver@7784200024d6b3fc01253e617ec0168daf603de3 | |
with: | |
input_string: ${{ steps.release.outputs.tag_name }} | |
- name: Mark as pre-release | |
if: steps.semver_parser.outputs.prerelease != '' | |
uses: tubone24/update_release@1cfa79ccf7422570d9a9c6b6de749ff4b280e48b | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
TAG_NAME: ${{ steps.release.outputs.tag_name }} | |
with: | |
prerelease: true | |
- name: Trigger Renovate | |
uses: actions/github-script@v7 | |
if: steps.release.outputs.release_created && steps.semver_parser.outputs.prerelease == '' | |
with: | |
github-token: ${{ secrets.GH_CQ_BOT }} | |
script: | | |
github.rest.actions.createWorkflowDispatch({ | |
owner: 'cloudquery', | |
repo: '.github', | |
workflow_id: 'renovate.yml', | |
ref: 'main', | |
}) |