-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1.39 KB
/
update-staging-version.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 triggers a new workflow inside the graasp-deploy repository. It passes a json
# with the repository name and the latest tag pushed from the caller repository.
name: Push new tag to graasp-deploy repository
# Controls when the action will run
on:
# Allow the workflow to be manually triggered
workflow_dispatch:
# Inputs the workflow accepts.
inputs:
release-type:
# Description to be shown in the UI instead of 'stack'
description: 'Select a release type'
# Default value if no value is explicitly provided
# Input does not have to be provided for the workflow to run
type: choice
options:
- first
- patch
- minor
- major
default: patch
required: true
# This workflow is made up of one job that calls the reusable workflow in graasp-deploy
jobs:
graasp-deploy-update-staging-version-workflow:
# Replace with repository name
name: Graasp app text input
# Replace 'main' with the hash of a commit, so it points to an specific version of the reusable workflow that is used
# Reference reusable workflow file. Using the commit SHA is the safest for stability and security
uses: graasp/graasp-deploy/.github/workflows/update-staging-version.yml@v1
with:
release-type: ${{ inputs.release-type }}
secrets:
token: ${{ secrets.REPO_ACCESS_TOKEN }}