From 338a7cc7af638345c88954e96b639a1ba5914899 Mon Sep 17 00:00:00 2001 From: Caleb Barnes Date: Thu, 4 Jan 2024 01:59:32 -0800 Subject: [PATCH] update token env --- .github/workflows/push-to-starter-repo.yml | 9 +++++++-- .github/workflows/release-wp-plugins-and-theme.yml | 4 ++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/push-to-starter-repo.yml b/.github/workflows/push-to-starter-repo.yml index 43adc4d..e2a74e7 100644 --- a/.github/workflows/push-to-starter-repo.yml +++ b/.github/workflows/push-to-starter-repo.yml @@ -11,12 +11,17 @@ jobs: push: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + with: + # token: ${{ secrets.GITHUB_TOKEN }} + # ref: ${{ github.head_ref }} + fetch-depth: 0 - name: Push to another repository uses: ad-m/github-push-action@master with: - github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + github_token: ${{ secrets.PAT }} repository: CalebBarnes/nextwp-starter directory: apps/next-wordpress-starter branch: main + force: true diff --git a/.github/workflows/release-wp-plugins-and-theme.yml b/.github/workflows/release-wp-plugins-and-theme.yml index 19802e0..9965be3 100644 --- a/.github/workflows/release-wp-plugins-and-theme.yml +++ b/.github/workflows/release-wp-plugins-and-theme.yml @@ -25,7 +25,7 @@ jobs: id: create_release uses: actions/create-release@v1 env: - GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PAT }} with: tag_name: ${{ github.ref }} release_name: Release ${{ github.ref }} @@ -39,4 +39,4 @@ jobs: gh release upload ${{ github.ref }} "${zip_file}" --clobber done env: - GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PAT }}