diff --git a/.github/actions/release/action.yml b/.github/actions/release/action.yml index b30d9777e..173c04a85 100644 --- a/.github/actions/release/action.yml +++ b/.github/actions/release/action.yml @@ -13,6 +13,9 @@ inputs: gh_email: description: 'Github email' required: true + gh_repository: + description: 'Github repository' + required: true runs: using: "composite" steps: @@ -30,6 +33,7 @@ runs: run: | git config user.name "${{ inputs.gh_name }}" git config user.email "${{ inputs.gh_email }}" + git remote set-url origin https://${{ inputs.gh_token }}@github.com/${{ inputs.gh_repository }} - name: Build shell: bash run: npx nx run-many -t build --exclude=demo, diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c255a3836..50336089a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -126,10 +126,11 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - ssh-key: ${{ secrets.BOT_AUTH_KEY}} + token: ${{ secrets.GH_BOT_TOKEN }} - uses: './.github/actions/release' with: gh_token: ${{ secrets.GH_BOT_TOKEN }} npm_token: ${{ secrets.NPM_TOKEN }} gh_name: ${{ secrets.BOT_NAME }} gh_email: ${{ secrets.BOT_EMAIL }} + gh_repository: ${{ github.repository }}