diff --git a/.github/workflows/trigger_build_pkgdown_site.yaml b/.github/workflows/trigger_build_pkgdown_site.yaml index 53efb7a..d517cb5 100644 --- a/.github/workflows/trigger_build_pkgdown_site.yaml +++ b/.github/workflows/trigger_build_pkgdown_site.yaml @@ -5,24 +5,21 @@ on: workflows: ["Increment version"] # Ensure this matches the name in increment_version.yaml types: - completed - workflow_dispatch: jobs: trigger-build: runs-on: ubuntu-latest steps: - - name: Install gh + - name: Install GitHub CLI run: | - sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0 - sudo apt-add-repository https://cli.github.com/packages sudo apt update - sudo apt install gh + sudo apt install -y gh - - name: Configure gh + - name: Configure GitHub CLI env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - gh auth login --with-token <<< "$GITHUB_TOKEN" + echo "$GITHUB_TOKEN" | gh auth login --with-token - name: Trigger Build pkgdown site env: