-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.26 KB
/
initialize.yml
File metadata and controls
47 lines (39 loc) · 1.26 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
name: initialize
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
if: github.repository != 'parrogo/gomod'
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
token: ${{ secrets.GH_WORKFLOW }}
- name: Setup tools
run: |
echo $PWD
wget https://github.com/parrogo/ccaddrepo/releases/download/v1.1.12/addrepo
wget https://github.com/parrogo/ccaddrepo/releases/download/v1.1.12/setsecret
chmod +x addrepo setsecret
echo addrepo `./addrepo -v`
echo setsecret `./setsecret -v`
- name: Enable repo on codeclimate
env:
CC_TOKEN: ${{ secrets.CODE_CLIMATE_TOKEN }}
GH_WORKFLOW: ${{ secrets.GH_WORKFLOW }}
run: |
echo $PWD
./addrepo | ./setsecret
- name: Activate rendertemplates
run: |
mv .github/workflows/rendertemplates.yml.skip .github/workflows/rendertemplates.yml
rm addrepo setsecret .github/workflows/initialize.yml
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Initialization