diff --git a/.github/workflows/auto_format_docs.yml b/.github/workflows/auto_format_docs.yml index 03ba6ea..5b0cb82 100644 --- a/.github/workflows/auto_format_docs.yml +++ b/.github/workflows/auto_format_docs.yml @@ -16,11 +16,11 @@ jobs: steps: - name: Checkout code - run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3) + run: echo $(echo $GITHUB_REF | cut -d / -f 3) - if: github.event_name == 'push' - uses: actions/checkout@v4 + uses: actions/checkout@v2 - if: github.event_name == 'pull_request' - uses: actions/checkout@v4 + uses: actions/checkout@v2 with: ref: ${{ github.head_ref }} diff --git a/.github/workflows/auto_format_python.yml b/.github/workflows/auto_format_python.yml index 5ee71e1..9be2fd2 100644 --- a/.github/workflows/auto_format_python.yml +++ b/.github/workflows/auto_format_python.yml @@ -16,11 +16,11 @@ jobs: steps: - name: Checkout code - run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3) + run: echo $(echo $GITHUB_REF | cut -d / -f 3) - if: github.event_name == 'push' - uses: actions/checkout@v4 + uses: actions/checkout@v2 - if: github.event_name == 'pull_request' - uses: actions/checkout@v4 + uses: actions/checkout@v2 with: ref: ${{ github.head_ref }}