added spell check #1
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: Trigger rosbot-docker to build an image and bump version | |
on: | |
workflow_dispatch: | |
inputs: | |
name: | |
description: "Version to bump (major, minor, patch)" | |
default: "patch" | |
required: true | |
pull_request: | |
branches: humble | |
types: [closed] | |
jobs: | |
get-bump: | |
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true | |
name: Get version bump | |
runs-on: ubuntu-22.04 | |
outputs: | |
bump: ${{ env.BUMP }} | |
steps: | |
- if: github.event_name == 'pull_request' && github.event.pull_request.merged == true | |
name: Get version bump | |
id: get-version-bump | |
uses: husarion-ci/[email protected] | |
- if: github.event_name == 'pull_request' && github.event.pull_request.merged == true | |
run: echo "BUMP=${{ steps.get-version-bump.outputs.bump }}" >> $GITHUB_ENV | |
- if: github.event_name == 'workflow_dispatch' | |
run: echo "BUMP=${{ github.event.inputs.name }}" >> $GITHUB_ENV | |
catkin-release: | |
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true | |
name: Bump version | |
runs-on: ubuntu-22.04 | |
needs: get-bump | |
outputs: | |
new_version: ${{ steps.catkin-release.outputs.new_version }} | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v2 | |
- | |
name: Catkin release | |
id: catkin-release | |
uses: husarion-ci/[email protected] | |
with: | |
bump: ${{ needs.get-bump.outputs.bump }} | |
github_token: ${{ secrets.GH_PAT }} | |
git_user: action-bot | |
git_email: [email protected] | |
build-and-push-docker-image: | |
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true | |
name: Create new docker image | |
runs-on: ubuntu-22.04 | |
needs: catkin-release | |
steps: | |
- name: trigger the endpoint | |
run: > | |
curl -X POST | |
-H "Accept: application/vnd.github+json" | |
-H "Authorization: Bearer ${{ secrets.GH_PAT }}" | |
https://api.github.com/repos/husarion/rosbot-docker/dispatches | |
-d '{"event_type":"ros-package-update"}' |