-
Notifications
You must be signed in to change notification settings - Fork 49
41 lines (34 loc) · 1.18 KB
/
push-releasedev-updates.yaml
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
name: Push to regolibrary-dev
on:
push:
branches: [master]
env:
GH_ACCESS_TOKEN: ${{ secrets.ARMOSEC_ACCESS_KEY }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
token: ${{ env.GH_ACCESS_TOKEN }}
- run: git config --global url.https://${{ env.GH_ACCESS_TOKEN }}@github.com/armosec/.insteadOf https://github.com/armosec/
- run: git config --global url.https://${{ env.GH_ACCESS_TOKEN }}@github.com/kubescape/.insteadOf https://github.com/kubescape/
- name: Run export script
run: |
OUTPUT=pre-release python ./scripts/export.py
rm -r -f releaseDev
cp -R pre-release releaseDev
- name: Commit files
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add .
git commit -a -m "Updating releaseDev files $(date)"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ env.GH_ACCESS_TOKEN }}
repository: kubescape/regolibrary-dev
force: true