-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (35 loc) · 1.05 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: osc-api-deploy release build
on:
workflow_dispatch:
inputs:
api_version:
description: 'Outscale API version'
required: true
jobs:
auto-build:
environment: auto-build
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
ref: main
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
- name: Write Outscale API version to use
run: echo "${{ github.event.inputs.api_version }}" > api_version
- name: check version duplication
run: .github/scripts/release-check-duplicate.sh
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
- name: auto-generate release
run: ./build.sh "${{ github.event.inputs.api_version }}"
- name: push release branch
run: .github/scripts/release-push.sh
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
- name: create pull request
run: .github/scripts/release-pr.sh
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}