Repository navigation
69 lines (57 loc) · 2.09 KB
/
Copy pathtest.yml
File metadata and controls
69 lines (57 loc) · 2.09 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Process release branch
on:
create:
push:
jobs:
test:
runs-on: ubuntu-latest
steps:
- id: checkout
name: Checkout code
uses: actions/checkout@master
with:
ref: master
- id: release
run: echo ::set-output name=version::$( echo ${{ github.ref }} | cut -d '/' -f 3 )
- id: branch
run: echo ::set-output name=ref::${{ format('auto/pr/{0}/{1}', github.run_number, github.run_attempt) }}
- uses: chipinside/ghaction-import-gpg@v4.0.0
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
git_user_signingkey: true
git_commit_gpgsign: true
git_tag_gpgsign: true
git_committer_name: ChipInside BOT
git_committer_email: ti@chipinside.com.br
- id: generate-token
name: Create App Token
uses: chipinside/github-app-token@v1.4.0
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
- name: Checkout new branch
run: git checkout -b ${{ steps.branch.outputs.ref }}
- id: change
name: Change something
run: date +%s > timestamp
- id: commit
name: Commit
run: git commit --allow-empty -m "New branch for release ${{ steps.release.outputs.version }}"
- id: push
name: Push
run: git push --force --set-upstream origin ${{ steps.branch.outputs.ref }}
- id: pr
name: Create PR to master
uses: chipinside/create-pull-request@master
with:
token: ${{ steps.generate-token.outputs.token }}
base: master
head: ${{ steps.branch.outputs.ref }}
title: ${{ format('[AUTO] Release {0}', steps.tag.outputs.release) }}
body: Auytomatcally generated by Chipinside MultiPurpose Tool when creating a new release branch
milestone: 1
labels: enhancement, bug
assignees: emiliopedrollo
reviewers: emiliopedrollo
- name: print output
run: echo CREATE EPHEMERAL ENV FOR PR ${{ steps.pr.outputs.pull-request-number }}