From da7079dd7dc5d7d9952ca4065136c19d3f3480b3 Mon Sep 17 00:00:00 2001 From: Sander Devisscher Date: Fri, 23 Aug 2024 17:15:21 +0200 Subject: [PATCH] Update trigger_build_pkgdown_site.yaml #76 --- .github/workflows/trigger_build_pkgdown_site.yaml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) 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: