From 24df65ea4cbaafbf09db7778148d678c182a0b4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Collonval?= Date: Tue, 3 Oct 2023 14:52:58 +0200 Subject: [PATCH] Switch from `hub` to `gh` CLI --- .github/workflows/license-header.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/license-header.yml b/.github/workflows/license-header.yml index 4de29d58e..c5b69d915 100644 --- a/.github/workflows/license-header.yml +++ b/.github/workflows/license-header.yml @@ -16,11 +16,8 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} - - name: Configure git to use https - run: git config --global hub.protocol https - - name: Checkout the branch from the PR that triggered the job - run: hub pr checkout ${{ github.event.pull_request.number }} + run: gh pr checkout ${{ github.event.pull_request.number }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}