Skip to content

Commit

Permalink
Merge pull request #590 from kubescape/yuleib-patch-2
Browse files Browse the repository at this point in the history
Update push-releasedev-updates.yaml
  • Loading branch information
yuleib authored Feb 26, 2024
2 parents e550cf6 + 40a89eb commit bb0efcd
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 bb0efcd

Please sign in to comment.