-
Notifications
You must be signed in to change notification settings - Fork 17
39 lines (39 loc) · 1.39 KB
/
frameworkpullrequest.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
name: Create AdaptFramework Pull Request
on:
release:
types: [published]
jobs:
framework-pull-request:
name: Create FW PR
runs-on: ubuntu-latest
steps:
- name: Fetch tag
uses: actions/checkout@v3
- name: Set Core version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Checkout FW
uses: actions/checkout@v3
with:
path: "fw"
ref: "master"
repository: "adaptlearning/adapt_framework"
token: "${{ secrets.GITHUB_TOKEN }}"
fetch-depth: 0
persist-credentials: true
- name: Make changes to .gitmodules
shell: bash
working-directory: "fw"
run: |
echo '[submodule "src/core"]
path = src/core
branch = master
url = https://github.com/adaptlearning/adapt-contrib-core
installBranch = ${{ env.RELEASE_VERSION }}' > .gitmodules
- name: Create PR
uses: peter-evans/create-pull-request@v4
with:
path: "fw"
branch: core-bump-${{ env.RELEASE_VERSION }}
title: "Fix: Bumping core to ${{ env.RELEASE_VERSION }} automatically via 'frameworkpullrequest' Github action"
commit-message: "Fix: Bumping core to ${{ env.RELEASE_VERSION }} automatically via 'frameworkpullrequest' Github action"
token: "${{ secrets.COREBUMPPPR_TOKEN }}"