Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
happytreees committed Dec 7, 2023
1 parent 83d1384 commit f1aa566
Show file tree
Hide file tree
Showing 7 changed files with 89 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/generator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: "Code Generation"

on:
push:
tags:
- *

permissions:
contents: write

jobs:
generation-job:
runs-on: ubuntu-latest
container:
image: openapitools/openapi-generator-cli:latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Run code generation
run: (bash /usr/local/bin/docker-entrypoint.sh generate -i blob:https://www.vultr.com/ddc5a3ba-302d-4eec-8908-5a72f58c999b --additional-properties moduleName=VultRuby -g ruby -o ./vendor/vultr_ruby)
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
18 changes: 18 additions & 0 deletions .github/workflows/notify-issue.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: notify-issue

on:
issues:
types: [opened]

jobs:
issue:
runs-on: ubuntu-latest
name: New Issue Notification
steps:
- run: |
echo "{\"text\":\"Vultr-Ruby : New Issue https://github.com/vultr/vultr-ruby/issues/${{ github.event.issue.number }} \"}" > mattermost.json
- uses: mattermost/action-mattermost-notify@master
env:
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
MATTERMOST_USERNAME: ${{ secrets.MATTERMOST_USERNAME}}
MATTERMOST_ICON: ${{ secrets.MATTERMOST_ICON }}
16 changes: 16 additions & 0 deletions .github/workflows/notify-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: notify-pr

on: pull_request_target

jobs:
pr:
runs-on: ubuntu-latest
name: Pull Request Notification
steps:
- run: |
echo "{\"text\":\"Vultr-Ruby : PR https://github.com/vultr/vultr-ruby/pull/${{ github.event.number }} \"}" > mattermost.json
- uses: mattermost/action-mattermost-notify@master
env:
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
MATTERMOST_USERNAME: ${{ secrets.MATTERMOST_USERNAME}}
MATTERMOST_ICON: ${{ secrets.MATTERMOST_ICON }}
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/vultr-ruby.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f1aa566

Please sign in to comment.