diff --git a/.github/workflows/ci-extrachecks.yml b/.github/workflows/ci-extrachecks.yml index 0910044..e04016a 100644 --- a/.github/workflows/ci-extrachecks.yml +++ b/.github/workflows/ci-extrachecks.yml @@ -9,7 +9,7 @@ jobs: steps: - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: 'stable' diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1c09349..a0aadd2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,11 +5,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: 'stable' - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: CI uses: ./ with: diff --git a/.github/workflows/ci_rebuild_bp3.yml b/.github/workflows/ci_rebuild_bp3.yml index 470c954..c04ec15 100644 --- a/.github/workflows/ci_rebuild_bp3.yml +++ b/.github/workflows/ci_rebuild_bp3.yml @@ -17,12 +17,12 @@ jobs: steps: - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: 'stable' - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Rebuild airs-bp3 run: | diff --git a/.github/workflows/ci_reuse.yml b/.github/workflows/ci_reuse.yml index 57355ed..22733f7 100644 --- a/.github/workflows/ci_reuse.yml +++ b/.github/workflows/ci_reuse.yml @@ -17,12 +17,12 @@ jobs: steps: - name: Set up Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: '16.x' + node-version: '20.x' - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: token: ${{ secrets.reporeading_token }} submodules: true @@ -43,7 +43,7 @@ jobs: git config --global url."https://".insteadOf ssh:// - name: Cache Node - npm - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.npm key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} diff --git a/.github/workflows/ci_reuse_go.yml b/.github/workflows/ci_reuse_go.yml index 11df052..0afa0de 100644 --- a/.github/workflows/ci_reuse_go.yml +++ b/.github/workflows/ci_reuse_go.yml @@ -31,12 +31,12 @@ jobs: steps: - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: 'stable' - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Check pull request file size if: github.event_name == 'pull_request' @@ -46,7 +46,7 @@ jobs: pr_number: ${{ github.event.number }} - name: Cache Go - Modules - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} diff --git a/.github/workflows/ci_reuse_go_cas.yml b/.github/workflows/ci_reuse_go_cas.yml index 920e273..187d4de 100644 --- a/.github/workflows/ci_reuse_go_cas.yml +++ b/.github/workflows/ci_reuse_go_cas.yml @@ -23,12 +23,12 @@ jobs: steps: - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: 'stable' - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Check pull request file size if: github.event_name == 'pull_request' @@ -38,7 +38,7 @@ jobs: pr_number: ${{ github.event.number }} - name: Cache Go - Modules - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} diff --git a/.github/workflows/ci_reuse_go_norebuild.yml b/.github/workflows/ci_reuse_go_norebuild.yml index ea9798a..6499942 100644 --- a/.github/workflows/ci_reuse_go_norebuild.yml +++ b/.github/workflows/ci_reuse_go_norebuild.yml @@ -20,12 +20,12 @@ jobs: steps: - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: 'stable' - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Codecov run: | @@ -41,7 +41,7 @@ jobs: pr_number: ${{ github.event.number }} - name: Cache Go - Modules - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} diff --git a/.github/workflows/ci_reuse_go_pr.yml b/.github/workflows/ci_reuse_go_pr.yml index c22700e..fd40f4e 100644 --- a/.github/workflows/ci_reuse_go_pr.yml +++ b/.github/workflows/ci_reuse_go_pr.yml @@ -28,12 +28,12 @@ jobs: steps: - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: 'stable' - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 @@ -46,7 +46,7 @@ jobs: pr_number: ${{ github.event.number }} - name: Cache Go - Modules - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} diff --git a/README.md b/README.md index 155d26a..646794b 100644 --- a/README.md +++ b/README.md @@ -130,10 +130,10 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: Set up Node.js 16.x + - name: Set up Node.js 20.x uses: actions/setup-node@v1 with: - node-version: '16.x' + node-version: '20.x' - name: Checkout uses: actions/checkout@v2 - name: Cache Node - npm diff --git a/action.yml b/action.yml index 56aa8d0..6c8a757 100644 --- a/action.yml +++ b/action.yml @@ -52,5 +52,5 @@ outputs: asset_browser_download_url: description: 'The URL users can navigate to in order to download the uploaded asset' runs: - using: 'node16' + using: 'node20' main: 'dist/index.js' diff --git a/dist/index.js b/dist/index.js index 3684b25..27adb4a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -34,6 +34,7 @@ const getSourceFiles = function (dir, ignore, files_) { } const detectLanguage = function (ignore) { + if (fs.existsSync('go.mod')) return "go" let sourceFiles = getSourceFiles('.', ignore) for (const file of sourceFiles) {