Skip to content

Commit

Permalink
Update push-releasedev-updates.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: Yuval Leibovich <89763818+yuleib@users.noreply.github.com>
  • Loading branch information
yuleib authored Feb 26, 2024
1 parent e550cf6 commit 40a89eb
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/push-releasedev-updates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches: [master]

env:
GH_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -12,8 +15,11 @@ jobs:
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
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
Expand All @@ -30,6 +36,6 @@ jobs:
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
github_token: ${{ env.GH_ACCESS_TOKEN }}
repository: kubescape/regolibrary-dev
force: true
force: true

0 comments on commit 40a89eb

Please sign in to comment.