-
Notifications
You must be signed in to change notification settings - Fork 30
49 lines (41 loc) · 1.21 KB
/
instruqt-create-dev-track.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
37
38
39
40
41
42
43
44
45
46
47
48
49
##############################################################################
# Instruqt Github Actions Workflow
#
# This workflow will convert the provided track-slug into a DEV variant
#
##############################################################################
name: instruqt-create-dev
env:
INSTRUQT_TOKEN: ${{ secrets.INSTRUQT_TOKEN }}
TRACK_DIR: instruqt
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on:
workflow_dispatch:
inputs:
slug:
description: Track Slug
required: true
type: string
branches:
- '!main'
- '!master'
jobs:
CreateDevTrack:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Create dev track
uses: ./.github/actions/track-dev
with:
path: ${{ env.TRACK_DIR }}/${{ inputs.slug }}
- name: Push dev tracks
uses: ./.github/actions/track-push
with:
path: ${{ env.TRACK_DIR }}/${{ inputs.slug }}
- name: Commit Changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Creating dev version of ${{ inputs.slug }}