Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use fixed staticcheck version #64

Merged
merged 3 commits into from
Oct 27, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/depup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,29 @@ jobs:
branch: depup/reviewdog
base: master
labels: "bump:minor"

staticcheck:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since there are too many parameters, it seemed difficult to write them all together using a GitHub Actions matrix 💦
In this case, It's better to write naively.

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: haya14busa/action-depup@v1
id: depup
with:
file: script.sh
version_name: STATICCHECK_VERSION
repo: dominikh/go-tools

- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: "chore(deps): update staticcheck to ${{ steps.depup.outputs.latest }}"
commit-message: "chore(deps): update staticcheck to ${{ steps.depup.outputs.latest }}"
body: |
Update staticcheck to [v${{ steps.depup.outputs.latest }}](https://github.com/dominikh/go-tools/releases/tag/${{ steps.depup.outputs.latest }})
Compare [v${{ steps.depup.outputs.current }}...${{ steps.depup.outputs.latest }}](https://github.com/gominikh/go-tools/compare/${{ steps.depup.outputs.current }}...${{ steps.depup.outputs.latest }})

This PR is auto generated by [depup workflow](https://github.com/${{ github.repository }}/actions?query=workflow%3Adepup).
branch: depup/staticcheck
base: master
labels: "bump:minor"
4 changes: 3 additions & 1 deletion script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ TEMP_PATH="$(mktemp -d)"
PATH="${TEMP_PATH}:$PATH"
export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}"

STATICCHECK_VERSION="2024.1.1"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

echo '::group:: Installing staticcheck ... https://staticcheck.io'
curl -sfL "https://github.com/dominikh/go-tools/releases/latest/download/staticcheck_linux_amd64.tar.gz" | tar -xvz -C "${TEMP_PATH}" --strip-components=1
curl -sfL "https://github.com/dominikh/go-tools/releases/download/${STATICCHECK_VERSION}/staticcheck_linux_amd64.tar.gz" | tar -xvz -C "${TEMP_PATH}" --strip-components=1
staticcheck --version
echo '::endgroup::'


Expand Down
Loading