From 987a5ecb6c4e917f6d68f7d19678fefafb083ee6 Mon Sep 17 00:00:00 2001 From: Franciszek Walkowiak Date: Fri, 8 Mar 2024 16:57:15 +0100 Subject: [PATCH] Cleanup --- .github/workflows/audit.yaml | 22 --------------- .github/workflows/bioccheck.yaml | 9 ------- .github/workflows/build-check-install.yaml | 22 --------------- .github/workflows/gitleaks.yaml | 31 ---------------------- .github/workflows/grammar.yaml | 9 ------- .github/workflows/licenses.yaml | 9 ------- .github/workflows/links.yaml | 9 ------- .github/workflows/linter.yaml | 31 ---------------------- .github/workflows/pkgdown.yaml | 9 ------- .github/workflows/release.yaml | 9 ------- .github/workflows/roxygen.yaml | 22 --------------- .github/workflows/spelling.yaml | 9 ------- .github/workflows/style.yaml | 9 ------- .github/workflows/test-coverage.yaml | 18 ------------- .github/workflows/validation.yaml | 9 ------- .github/workflows/verdepcheck.yaml | 9 ------- .github/workflows/version-bump.yaml | 9 ------- .github/workflows/version.yaml | 18 ------------- 18 files changed, 263 deletions(-) diff --git a/.github/workflows/audit.yaml b/.github/workflows/audit.yaml index 03d811e5..889781bc 100644 --- a/.github/workflows/audit.yaml +++ b/.github/workflows/audit.yaml @@ -35,19 +35,6 @@ jobs: if: > github.event.pull_request.draft == false steps: - - name: Get PR Commits - id: 'get-pr-commits' - uses: tim-actions/get-pr-commits@master - with: - token: ${{ secrets.GITHUB_TOKEN }} - - - name: Check commit message - uses: tim-actions/commit-message-checker-with-regex@v0.3.1 - with: - commits: ${{ steps.get-pr-commits.outputs.commits }} - pattern: '^.*\[skip\ audit\].*$' - error: 'Skip instruction detected' - - name: Get branch names 🌿 id: branch-name uses: tj-actions/branch-names@v7 @@ -75,18 +62,9 @@ jobs: if [[ $head_commit_message == *"$SKIP_INSTRUCTION"* ]]; then echo "Skip instruction detected - cancelling the workflow." exit 1 - curl -s -LJ -o gh.tar.gz https://github.com/cli/cli/releases/download/v${GH_CLI_VERSION}/gh_${GH_CLI_VERSION}_linux_amd64.tar.gz - tar -xzf gh.tar.gz --strip-components 2 - ./gh version - ./gh run cancel ${{ github.run_id }} - ./gh run watch ${{ github.run_id }} - else - echo "Skip instruction not detected - continuing the workflow." fi shell: bash env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GH_CLI_VERSION: 2.44.1 SKIP_INSTRUCTION: "[skip audit]" - name: Normalize inputs 🛠️ diff --git a/.github/workflows/bioccheck.yaml b/.github/workflows/bioccheck.yaml index fa3a7a9e..fecd571f 100644 --- a/.github/workflows/bioccheck.yaml +++ b/.github/workflows/bioccheck.yaml @@ -114,19 +114,10 @@ jobs: if [[ $head_commit_message == *"$SKIP_INSTRUCTION"* ]]; then echo "Skip instruction detected - cancelling the workflow." exit 1 - curl -s -LJ -o gh.tar.gz https://github.com/cli/cli/releases/download/v${GH_CLI_VERSION}/gh_${GH_CLI_VERSION}_linux_amd64.tar.gz - tar -xzf gh.tar.gz --strip-components 2 - ./gh version - ./gh run cancel ${{ github.run_id }} - ./gh run watch ${{ github.run_id }} - else - echo "Skip instruction not detected - continuing the workflow." fi shell: bash working-directory: ${{ github.event.repository.name }} env: - GH_TOKEN: ${{ steps.github-token.outputs.token }} - GH_CLI_VERSION: 2.44.1 SKIP_INSTRUCTION: "[skip bioccheck]" - name: Restore SD cache 💰 diff --git a/.github/workflows/build-check-install.yaml b/.github/workflows/build-check-install.yaml index 404ea226..7af0a55b 100644 --- a/.github/workflows/build-check-install.yaml +++ b/.github/workflows/build-check-install.yaml @@ -195,19 +195,6 @@ jobs: multiversion-docs: ${{ steps.current-branch-or-tag.outputs.multiversion-docs }} steps: - - name: Get PR Commits - id: 'get-pr-commits' - uses: tim-actions/get-pr-commits@master - with: - token: ${{ secrets.GITHUB_TOKEN }} - - - name: Check commit message - uses: tim-actions/commit-message-checker-with-regex@v0.3.1 - with: - commits: ${{ steps.get-pr-commits.outputs.commits }} - pattern: '^.*\[skip\ r-cmd\].*$' - error: 'Skip instruction detected' - - name: Setup token 🔑 id: github-token run: | @@ -252,19 +239,10 @@ jobs: if [[ $head_commit_message == *"$SKIP_INSTRUCTION"* ]]; then echo "Skip instruction detected - cancelling the workflow." exit 1 - curl -s -LJ -o gh.tar.gz https://github.com/cli/cli/releases/download/v${GH_CLI_VERSION}/gh_${GH_CLI_VERSION}_linux_amd64.tar.gz - tar -xzf gh.tar.gz --strip-components 2 - ./gh version - ./gh run cancel ${{ github.run_id }} - ./gh run watch ${{ github.run_id }} - else - echo "Skip instruction not detected - continuing the workflow." fi shell: bash working-directory: ${{ github.event.repository.name }} env: - GH_TOKEN: ${{ steps.github-token.outputs.token }} - GH_CLI_VERSION: 2.44.1 SKIP_INSTRUCTION: "[skip r-cmd]" - name: Checkout gh-pages 🛎 diff --git a/.github/workflows/gitleaks.yaml b/.github/workflows/gitleaks.yaml index 911fbe6a..5e8bf0f3 100644 --- a/.github/workflows/gitleaks.yaml +++ b/.github/workflows/gitleaks.yaml @@ -39,19 +39,6 @@ jobs: github.event.pull_request.draft == false steps: - - name: Get PR Commits - id: 'get-pr-commits' - uses: tim-actions/get-pr-commits@master - with: - token: ${{ secrets.GITHUB_TOKEN }} - - - name: Check commit message - uses: tim-actions/commit-message-checker-with-regex@v0.3.1 - with: - commits: ${{ steps.get-pr-commits.outputs.commits }} - pattern: '^.*\[skip\ gitleaks\].*$' - error: 'Skip instruction detected' - - name: Get branch names 🌿 id: branch-name uses: tj-actions/branch-names@v7 @@ -77,18 +64,9 @@ jobs: if [[ $head_commit_message == *"$SKIP_INSTRUCTION"* ]]; then echo "Skip instruction detected - cancelling the workflow." exit 1 - curl -s -LJ -o gh.tar.gz https://github.com/cli/cli/releases/download/v${GH_CLI_VERSION}/gh_${GH_CLI_VERSION}_linux_amd64.tar.gz - tar -xzf gh.tar.gz --strip-components 2 - ./gh version - ./gh run cancel ${{ github.run_id }} - ./gh run watch ${{ github.run_id }} - else - echo "Skip instruction not detected - continuing the workflow." fi shell: bash env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GH_CLI_VERSION: 2.44.1 SKIP_INSTRUCTION: "[skip gitleaks]" - name: Download and install gitleaks 💧 @@ -145,18 +123,9 @@ jobs: if [[ $head_commit_message == *"$SKIP_INSTRUCTION"* ]]; then echo "Skip instruction detected - cancelling the workflow." exit 1 - curl -s -LJ -o gh.tar.gz https://github.com/cli/cli/releases/download/v${GH_CLI_VERSION}/gh_${GH_CLI_VERSION}_linux_amd64.tar.gz - tar -xzf gh.tar.gz --strip-components 2 - ./gh version - ./gh run cancel ${{ github.run_id }} - ./gh run watch ${{ github.run_id }} - else - echo "Skip instruction not detected - continuing the workflow." fi shell: bash env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GH_CLI_VERSION: 2.44.1 SKIP_INSTRUCTION: "[skip pii-check]" - name: Run Presidio to check for PII ☔ diff --git a/.github/workflows/grammar.yaml b/.github/workflows/grammar.yaml index cc4fb4f9..d85d7a2c 100644 --- a/.github/workflows/grammar.yaml +++ b/.github/workflows/grammar.yaml @@ -63,18 +63,9 @@ jobs: if [[ $head_commit_message == *"$SKIP_INSTRUCTION"* ]]; then echo "Skip instruction detected - cancelling the workflow." exit 1 - curl -s -LJ -o gh.tar.gz https://github.com/cli/cli/releases/download/v${GH_CLI_VERSION}/gh_${GH_CLI_VERSION}_linux_amd64.tar.gz - tar -xzf gh.tar.gz --strip-components 2 - ./gh version - ./gh run cancel ${{ github.run_id }} - ./gh run watch ${{ github.run_id }} - else - echo "Skip instruction not detected - continuing the workflow." fi shell: bash env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GH_CLI_VERSION: 2.44.1 SKIP_INSTRUCTION: "[skip grammar]" - name: Restore npm cache 💰 diff --git a/.github/workflows/licenses.yaml b/.github/workflows/licenses.yaml index bc0dfe83..e91a7afe 100644 --- a/.github/workflows/licenses.yaml +++ b/.github/workflows/licenses.yaml @@ -58,18 +58,9 @@ jobs: if [[ $head_commit_message == *"$SKIP_INSTRUCTION"* ]]; then echo "Skip instruction detected - cancelling the workflow." exit 1 - curl -s -LJ -o gh.tar.gz https://github.com/cli/cli/releases/download/v${GH_CLI_VERSION}/gh_${GH_CLI_VERSION}_linux_amd64.tar.gz - tar -xzf gh.tar.gz --strip-components 2 - ./gh version - ./gh run cancel ${{ github.run_id }} - ./gh run watch ${{ github.run_id }} - else - echo "Skip instruction not detected - continuing the workflow." fi shell: bash env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GH_CLI_VERSION: 2.44.1 SKIP_INSTRUCTION: "[skip licenses]" - name: Generate license report 📜 diff --git a/.github/workflows/links.yaml b/.github/workflows/links.yaml index ddb44ad3..952ed311 100644 --- a/.github/workflows/links.yaml +++ b/.github/workflows/links.yaml @@ -58,18 +58,9 @@ jobs: if [[ $head_commit_message == *"$SKIP_INSTRUCTION"* ]]; then echo "Skip instruction detected - cancelling the workflow." exit 1 - curl -s -LJ -o gh.tar.gz https://github.com/cli/cli/releases/download/v${GH_CLI_VERSION}/gh_${GH_CLI_VERSION}_linux_amd64.tar.gz - tar -xzf gh.tar.gz --strip-components 2 - ./gh version - ./gh run cancel ${{ github.run_id }} - ./gh run watch ${{ github.run_id }} - else - echo "Skip instruction not detected - continuing the workflow." fi shell: bash env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GH_CLI_VERSION: 2.44.1 SKIP_INSTRUCTION: "[skip links]" - name: Check URLs in docs 🔬 diff --git a/.github/workflows/linter.yaml b/.github/workflows/linter.yaml index 6541e1a1..e2a551a4 100644 --- a/.github/workflows/linter.yaml +++ b/.github/workflows/linter.yaml @@ -39,19 +39,6 @@ jobs: github.event.pull_request.draft == false steps: - - name: Get PR Commits - id: 'get-pr-commits' - uses: tim-actions/get-pr-commits@master - with: - token: ${{ secrets.GITHUB_TOKEN }} - - - name: Check commit message - uses: tim-actions/commit-message-checker-with-regex@v0.3.1 - with: - commits: ${{ steps.get-pr-commits.outputs.commits }} - pattern: '^.*\[skip\ linter\].*$' - error: 'Skip instruction detected' - - name: Get branch names 🌿 id: branch-name uses: tj-actions/branch-names@v7 @@ -79,18 +66,9 @@ jobs: if [[ $head_commit_message == *"$SKIP_INSTRUCTION"* ]]; then echo "Skip instruction detected - cancelling the workflow." exit 1 - curl -s -LJ -o gh.tar.gz https://github.com/cli/cli/releases/download/v${GH_CLI_VERSION}/gh_${GH_CLI_VERSION}_linux_amd64.tar.gz - tar -xzf gh.tar.gz --strip-components 2 - ./gh version - ./gh run cancel ${{ github.run_id }} - ./gh run watch ${{ github.run_id }} - else - echo "Skip instruction not detected - continuing the workflow." fi shell: bash env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GH_CLI_VERSION: 2.44.1 SKIP_INSTRUCTION: "[skip linter]" - name: Override SuperLinter configs 💾 @@ -161,18 +139,9 @@ jobs: if [[ $head_commit_message == *"$SKIP_INSTRUCTION"* ]]; then echo "Skip instruction detected - cancelling the workflow." exit 1 - curl -s -LJ -o gh.tar.gz https://github.com/cli/cli/releases/download/v${GH_CLI_VERSION}/gh_${GH_CLI_VERSION}_linux_amd64.tar.gz - tar -xzf gh.tar.gz --strip-components 2 - ./gh version - ./gh run cancel ${{ github.run_id }} - ./gh run watch ${{ github.run_id }} - else - echo "Skip instruction not detected - continuing the workflow." fi shell: bash env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GH_CLI_VERSION: 2.44.1 SKIP_INSTRUCTION: "[skip linter]" - name: Changed files 🖋️ diff --git a/.github/workflows/pkgdown.yaml b/.github/workflows/pkgdown.yaml index 2b48bebb..964c2e0a 100644 --- a/.github/workflows/pkgdown.yaml +++ b/.github/workflows/pkgdown.yaml @@ -181,19 +181,10 @@ jobs: if [[ $head_commit_message == *"$SKIP_INSTRUCTION"* ]]; then echo "Skip instruction detected - cancelling the workflow." exit 1 - curl -s -LJ -o gh.tar.gz https://github.com/cli/cli/releases/download/v${GH_CLI_VERSION}/gh_${GH_CLI_VERSION}_linux_amd64.tar.gz - tar -xzf gh.tar.gz --strip-components 2 - ./gh version - ./gh run cancel ${{ github.run_id }} - ./gh run watch ${{ github.run_id }} - else - echo "Skip instruction not detected - continuing the workflow." fi shell: bash working-directory: ${{ github.event.repository.name }} env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GH_CLI_VERSION: 2.44.1 SKIP_INSTRUCTION: "[skip docs]" - name: Restore SD cache 💰 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 11a4a1dc..bcb33632 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -59,18 +59,9 @@ jobs: if [[ $head_commit_message == *"$SKIP_INSTRUCTION"* ]]; then echo "Skip instruction detected - cancelling the workflow." exit 1 - curl -s -LJ -o gh.tar.gz https://github.com/cli/cli/releases/download/v${GH_CLI_VERSION}/gh_${GH_CLI_VERSION}_linux_amd64.tar.gz - tar -xzf gh.tar.gz --strip-components 2 - ./gh version - ./gh run cancel ${{ github.run_id }} - ./gh run watch ${{ github.run_id }} - else - echo "Skip instruction not detected - continuing the workflow." fi shell: bash env: - GH_TOKEN: ${{ steps.github-token.outputs.token }} - GH_CLI_VERSION: 2.44.1 SKIP_INSTRUCTION: "[skip release]" - name: Get branch names 🌿 diff --git a/.github/workflows/roxygen.yaml b/.github/workflows/roxygen.yaml index 5475f1db..e275f3d4 100644 --- a/.github/workflows/roxygen.yaml +++ b/.github/workflows/roxygen.yaml @@ -61,19 +61,6 @@ jobs: image: ghcr.io/insightsengineering/rstudio:latest steps: - - name: Get PR Commits - id: 'get-pr-commits' - uses: tim-actions/get-pr-commits@master - with: - token: ${{ secrets.GITHUB_TOKEN }} - - - name: Check commit message - uses: tim-actions/commit-message-checker-with-regex@v0.3.1 - with: - commits: ${{ steps.get-pr-commits.outputs.commits }} - pattern: '^.*\[skip\ roxygen\].*$' - error: 'Skip instruction detected' - - name: Setup token 🔑 id: github-token run: | @@ -114,19 +101,10 @@ jobs: if [[ $head_commit_message == *"$SKIP_INSTRUCTION"* ]]; then echo "Skip instruction detected - cancelling the workflow." exit 1 - curl -s -LJ -o gh.tar.gz https://github.com/cli/cli/releases/download/v${GH_CLI_VERSION}/gh_${GH_CLI_VERSION}_linux_amd64.tar.gz - tar -xzf gh.tar.gz --strip-components 2 - ./gh version - ./gh run cancel ${{ github.run_id }} - ./gh run watch ${{ github.run_id }} - else - echo "Skip instruction not detected - continuing the workflow." fi shell: bash working-directory: ${{ github.event.repository.name }} env: - GH_TOKEN: ${{ steps.github-token.outputs.token }} - GH_CLI_VERSION: 2.44.1 SKIP_INSTRUCTION: "[skip roxygen]" - name: Restore SD cache 💰 diff --git a/.github/workflows/spelling.yaml b/.github/workflows/spelling.yaml index e8894985..03b37486 100644 --- a/.github/workflows/spelling.yaml +++ b/.github/workflows/spelling.yaml @@ -85,18 +85,9 @@ jobs: if [[ $head_commit_message == *"$SKIP_INSTRUCTION"* ]]; then echo "Skip instruction detected - cancelling the workflow." exit 1 - curl -s -LJ -o gh.tar.gz https://github.com/cli/cli/releases/download/v${GH_CLI_VERSION}/gh_${GH_CLI_VERSION}_linux_amd64.tar.gz - tar -xzf gh.tar.gz --strip-components 2 - ./gh version - ./gh run cancel ${{ github.run_id }} - ./gh run watch ${{ github.run_id }} - else - echo "Skip instruction not detected - continuing the workflow." fi shell: bash env: - GH_TOKEN: ${{ steps.github-token.outputs.token }} - GH_CLI_VERSION: 2.44.1 SKIP_INSTRUCTION: "[skip spelling]" - name: Normalize variables 📏 diff --git a/.github/workflows/style.yaml b/.github/workflows/style.yaml index 33b48d2b..aa1b4423 100644 --- a/.github/workflows/style.yaml +++ b/.github/workflows/style.yaml @@ -88,19 +88,10 @@ jobs: if [[ $head_commit_message == *"$SKIP_INSTRUCTION"* ]]; then echo "Skip instruction detected - cancelling the workflow." exit 1 - curl -s -LJ -o gh.tar.gz https://github.com/cli/cli/releases/download/v${GH_CLI_VERSION}/gh_${GH_CLI_VERSION}_linux_amd64.tar.gz - tar -xzf gh.tar.gz --strip-components 2 - ./gh version - ./gh run cancel ${{ github.run_id }} - ./gh run watch ${{ github.run_id }} - else - echo "Skip instruction not detected - continuing the workflow." fi shell: bash working-directory: ${{ github.event.repository.name }} env: - GH_TOKEN: ${{ steps.github-token.outputs.token }} - GH_CLI_VERSION: 2.44.1 SKIP_INSTRUCTION: "[skip style]" - name: Install styler 👚 diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index 8ea7615d..c9c74285 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -188,19 +188,10 @@ jobs: if [[ $head_commit_message == *"$SKIP_INSTRUCTION"* ]]; then echo "Skip instruction detected - cancelling the workflow." exit 1 - curl -s -LJ -o gh.tar.gz https://github.com/cli/cli/releases/download/v${GH_CLI_VERSION}/gh_${GH_CLI_VERSION}_linux_amd64.tar.gz - tar -xzf gh.tar.gz --strip-components 2 - ./gh version - ./gh run cancel ${{ github.run_id }} - ./gh run watch ${{ github.run_id }} - else - echo "Skip instruction not detected - continuing the workflow." fi shell: bash working-directory: ${{ github.event.repository.name }} env: - GH_TOKEN: ${{ steps.github-token.outputs.token }} - GH_CLI_VERSION: 2.44.1 SKIP_INSTRUCTION: "[skip coverage]" - name: Normalize inputs ⊳ @@ -362,19 +353,10 @@ jobs: if [[ $head_commit_message == *"$SKIP_INSTRUCTION"* ]]; then echo "Skip instruction detected - cancelling the workflow." exit 1 - curl -s -LJ -o gh.tar.gz https://github.com/cli/cli/releases/download/v${GH_CLI_VERSION}/gh_${GH_CLI_VERSION}_linux_amd64.tar.gz - tar -xzf gh.tar.gz --strip-components 2 - ./gh version - ./gh run cancel ${{ github.run_id }} - ./gh run watch ${{ github.run_id }} - else - echo "Skip instruction not detected - continuing the workflow." fi shell: bash working-directory: ${{ github.event.repository.name }} env: - GH_TOKEN: ${{ steps.github-token.outputs.token }} - GH_CLI_VERSION: 2.44.1 SKIP_INSTRUCTION: "[skip coverage]" - name: Restore SD cache 💰 diff --git a/.github/workflows/validation.yaml b/.github/workflows/validation.yaml index 123ec8d8..c35aabc8 100644 --- a/.github/workflows/validation.yaml +++ b/.github/workflows/validation.yaml @@ -98,18 +98,9 @@ jobs: if [[ $head_commit_message == *"$SKIP_INSTRUCTION"* ]]; then echo "Skip instruction detected - cancelling the workflow." exit 1 - curl -s -LJ -o gh.tar.gz https://github.com/cli/cli/releases/download/v${GH_CLI_VERSION}/gh_${GH_CLI_VERSION}_linux_amd64.tar.gz - tar -xzf gh.tar.gz --strip-components 2 - ./gh version - ./gh run cancel ${{ github.run_id }} - ./gh run watch ${{ github.run_id }} - else - echo "Skip instruction not detected - continuing the workflow." fi shell: bash env: - GH_TOKEN: ${{ steps.github-token.outputs.token }} - GH_CLI_VERSION: 2.44.1 SKIP_INSTRUCTION: "[skip validation]" - name: Normalize variables 📏 diff --git a/.github/workflows/verdepcheck.yaml b/.github/workflows/verdepcheck.yaml index c61635fa..9f4f3527 100644 --- a/.github/workflows/verdepcheck.yaml +++ b/.github/workflows/verdepcheck.yaml @@ -79,18 +79,9 @@ jobs: if [[ $head_commit_message == *"$SKIP_INSTRUCTION"* ]]; then echo "Skip instruction detected - cancelling the workflow." exit 1 - curl -s -LJ -o gh.tar.gz https://github.com/cli/cli/releases/download/v${GH_CLI_VERSION}/gh_${GH_CLI_VERSION}_linux_amd64.tar.gz - tar -xzf gh.tar.gz --strip-components 2 - ./gh version - ./gh run cancel ${{ github.run_id }} - ./gh run watch ${{ github.run_id }} - else - echo "Skip instruction not detected - continuing the workflow." fi shell: bash env: - GH_TOKEN: ${{ steps.github-token.outputs.token }} - GH_CLI_VERSION: 2.44.1 SKIP_INSTRUCTION: "[skip dependency-test]" - name: Normalize variables 📏 diff --git a/.github/workflows/version-bump.yaml b/.github/workflows/version-bump.yaml index fdf0c4a0..7a4eaecc 100644 --- a/.github/workflows/version-bump.yaml +++ b/.github/workflows/version-bump.yaml @@ -70,18 +70,9 @@ jobs: if [[ $head_commit_message == *"$SKIP_INSTRUCTION"* ]]; then echo "Skip instruction detected - cancelling the workflow." exit 1 - curl -s -LJ -o gh.tar.gz https://github.com/cli/cli/releases/download/v${GH_CLI_VERSION}/gh_${GH_CLI_VERSION}_linux_amd64.tar.gz - tar -xzf gh.tar.gz --strip-components 2 - ./gh version - ./gh run cancel ${{ github.run_id }} - ./gh run watch ${{ github.run_id }} - else - echo "Skip instruction not detected - continuing the workflow." fi shell: bash env: - GH_TOKEN: ${{ steps.github-token.outputs.token }} - GH_CLI_VERSION: 2.44.1 SKIP_INSTRUCTION: "[skip vbump]" - name: Bump version in DESCRIPTION 📜 diff --git a/.github/workflows/version.yaml b/.github/workflows/version.yaml index bb225e39..eec8db3c 100644 --- a/.github/workflows/version.yaml +++ b/.github/workflows/version.yaml @@ -59,18 +59,9 @@ jobs: if [[ $head_commit_message == *"$SKIP_INSTRUCTION"* ]]; then echo "Skip instruction detected - cancelling the workflow." exit 1 - curl -s -LJ -o gh.tar.gz https://github.com/cli/cli/releases/download/v${GH_CLI_VERSION}/gh_${GH_CLI_VERSION}_linux_amd64.tar.gz - tar -xzf gh.tar.gz --strip-components 2 - ./gh version - ./gh run cancel ${{ github.run_id }} - ./gh run watch ${{ github.run_id }} - else - echo "Skip instruction not detected - continuing the workflow." fi shell: bash env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GH_CLI_VERSION: 2.44.1 SKIP_INSTRUCTION: "[skip version]" - name: NEWS.md and DESCRIPTION Version check 🏁 @@ -130,18 +121,9 @@ jobs: if [[ $head_commit_message == *"$SKIP_INSTRUCTION"* ]]; then echo "Skip instruction detected - cancelling the workflow." exit 1 - curl -s -LJ -o gh.tar.gz https://github.com/cli/cli/releases/download/v${GH_CLI_VERSION}/gh_${GH_CLI_VERSION}_linux_amd64.tar.gz - tar -xzf gh.tar.gz --strip-components 2 - ./gh version - ./gh run cancel ${{ github.run_id }} - ./gh run watch ${{ github.run_id }} - else - echo "Skip instruction not detected - continuing the workflow." fi shell: bash env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GH_CLI_VERSION: 2.44.1 SKIP_INSTRUCTION: "[skip version]" - name: Set up Python 🐍