-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (35 loc) · 1.37 KB
/
release.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
# this workflow is triggered manually and creates a release in /fiug (from beta)
name: release
on:
workflow_dispatch:
inputs:
version:
description: 'Version number for release'
jobs:
release:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: creates output
run: sh ./.github/.create_release.sh ${{ github.event.inputs.version }}
- uses: GuillaumeFalourd/create-other-repo-branch-action@v1
with:
repository_owner: fiugd
repository_name: fiug
new_branch_name: release-v${{ github.event.inputs.version }}
#new_branch_ref: main
access_token: ${{ secrets.API_TOKEN_GITHUB }}
- name: Push to fiug main
id: push_directory
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source-directory: '.release'
destination-github-username: fiugd
destination-repository-name: fiug
user-email: github@chimpjuice.com
commit-message: v${{ github.event.inputs.version }}
# commit-message: v${{ github.event.inputs.version }}, see ORIGIN_COMMIT from $GITHUB_REF
target-branch: release-v${{ github.event.inputs.version }}