diff --git a/.github/workflows/automatic-rebase.yml b/.github/workflows/automatic-rebase.yml index 286c271..5a6e627 100644 --- a/.github/workflows/automatic-rebase.yml +++ b/.github/workflows/automatic-rebase.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout the latest code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Automatic Rebase diff --git a/.github/workflows/check-large-files.yml b/.github/workflows/check-large-files.yml index f916899..0ae1b2c 100644 --- a/.github/workflows/check-large-files.yml +++ b/.github/workflows/check-large-files.yml @@ -10,7 +10,7 @@ jobs: name: Check for large files runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Check for large files run: | find . -type f -size +5M | while read file; do diff --git a/.github/workflows/code_quality.yml b/.github/workflows/code_quality.yml index ed2053e..a6ef45e 100644 --- a/.github/workflows/code_quality.yml +++ b/.github/workflows/code_quality.yml @@ -14,11 +14,11 @@ jobs: pull-requests: write checks: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha }} - fetch-depth: 0 + fetch-depth: 0 - name: 'Qodana Scan' - uses: JetBrains/qodana-action@v2023.3 + uses: JetBrains/qodana-action@v2024.3 env: QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index a8e3114..94fce98 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -12,9 +12,9 @@ jobs: runs-on: ubuntu-latest steps: - name: "Checkout Repository" - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: "Dependency Review" - uses: actions/dependency-review-action@v3 + uses: actions/dependency-review-action@v4 continue-on-error: ${{ github.event_name == 'push' }} - name: "Check Dependency Review Outcome" if: github.event_name == 'push' && failure() diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 93981b3..071abe2 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -8,7 +8,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Go uses: actions/setup-go@v4 with: diff --git a/.github/workflows/language.yml b/.github/workflows/language.yml index 2a28959..48ad129 100644 --- a/.github/workflows/language.yml +++ b/.github/workflows/language.yml @@ -18,7 +18,7 @@ jobs: name: profanity check steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Profanity check step uses: tailaiw/mind-your-language-action@v1.0.3 env: diff --git a/.github/workflows/markdown-lint.yml b/.github/workflows/markdown-lint.yml index fafd87a..02f21f7 100644 --- a/.github/workflows/markdown-lint.yml +++ b/.github/workflows/markdown-lint.yml @@ -10,9 +10,9 @@ jobs: name: runner / markdownlint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: markdownlint - uses: reviewdog/action-markdownlint@v0.10.0 + uses: reviewdog/action-markdownlint@v0.24.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} reporter: github-pr-review diff --git a/.github/workflows/misspell.yml b/.github/workflows/misspell.yml index 6f25482..4ec371d 100644 --- a/.github/workflows/misspell.yml +++ b/.github/workflows/misspell.yml @@ -10,9 +10,9 @@ jobs: name: runner / misspell runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: misspell - uses: reviewdog/action-misspell@v1.13.0 + uses: reviewdog/action-misspell@v1.26.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} reporter: github-pr-review diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 27f2273..7bc33b6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ jobs: permissions: contents: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Go uses: actions/setup-go@v4 with: @@ -43,32 +43,13 @@ jobs: - name: Set release version run: echo "RELEASE_VERSION=$(git rev-parse --short HEAD)" >> $GITHUB_ENV - - name: Get commit info - run: | - echo "COMMIT_MESSAGE=$(git log -1 --pretty=%B)" >> $GITHUB_ENV - echo "COMMIT_AUTHOR=$(git log -1 --pretty=%an)" >> $GITHUB_ENV - echo "COMMIT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV - - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Create Release and Upload Assets + uses: softprops/action-gh-release@v2 with: tag_name: automated-release-${{ env.RELEASE_VERSION }} - release_name: Release ${{ env.RELEASE_VERSION }} + name: Release ${{ env.RELEASE_VERSION }} body: | - 🚀 sif automated release v${{ env.RELEASE_VERSION }} - - This is an automated release pushed by the release workflow. - - ## Commit Information - - **Message:** ${{ env.COMMIT_MESSAGE }} - - **Author:** ${{ env.COMMIT_AUTHOR }} - - **SHA:** ${{ env.COMMIT_SHA }} - - ## Build Information - - Built on: ${{ runner.os }} + Automated release v${{ env.RELEASE_VERSION }} ## Assets - Windows (64-bit): `sif-windows-amd64.exe` @@ -79,78 +60,16 @@ jobs: - Linux (32-bit): `sif-linux-386` - Linux (64-bit ARM): `sif-linux-arm64` - For more details, please check the [commit history](https://github.com/${{ github.repository }}/commits/main). - - @${{ env.COMMIT_AUTHOR }}, your changes have been included in this release. + For more details, check the [commit history](https://github.com/${{ github.repository }}/commits/main). draft: false prerelease: false - - - name: Upload Windows Release Asset - uses: actions/upload-release-asset@v1 + files: | + sif-windows-amd64.exe + sif-windows-386.exe + sif-macos-amd64 + sif-macos-arm64 + sif-linux-amd64 + sif-linux-386 + sif-linux-arm64 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./sif-windows-amd64.exe - asset_name: sif-windows-amd64.exe - asset_content_type: application/octet-stream - - - name: Upload Windows (32-bit) Release Asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./sif-windows-386.exe - asset_name: sif-windows-386.exe - asset_content_type: application/octet-stream - - - name: Upload macOS Release Asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./sif-macos-amd64 - asset_name: sif-macos-amd64 - asset_content_type: application/octet-stream - - - name: Upload macOS (ARM64) Release Asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./sif-macos-arm64 - asset_name: sif-macos-arm64 - asset_content_type: application/octet-stream - - - name: Upload Linux Release Asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./sif-linux-amd64 - asset_name: sif-linux-amd64 - asset_content_type: application/octet-stream - - - name: Upload Linux (32-bit) Release Asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./sif-linux-386 - asset_name: sif-linux-386 - asset_content_type: application/octet-stream - - - name: Upload Linux (ARM64) Release Asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./sif-linux-arm64 - asset_name: sif-linux-arm64 - asset_content_type: application/octet-stream diff --git a/.github/workflows/reportcard.yml b/.github/workflows/reportcard.yml index a097d4d..431a2f7 100644 --- a/.github/workflows/reportcard.yml +++ b/.github/workflows/reportcard.yml @@ -11,6 +11,6 @@ jobs: update-report-card: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Update Go Report Card uses: creekorful/goreportcard-action@v1.0 diff --git a/.github/workflows/runtest.yml b/.github/workflows/runtest.yml index 7486550..3e1df5a 100644 --- a/.github/workflows/runtest.yml +++ b/.github/workflows/runtest.yml @@ -11,7 +11,7 @@ jobs: build-and-test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Go uses: actions/setup-go@v4 with: diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml index efd3bd7..8342578 100644 --- a/.github/workflows/shellcheck.yml +++ b/.github/workflows/shellcheck.yml @@ -10,9 +10,9 @@ jobs: name: runner / shellcheck runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: shellcheck - uses: reviewdog/action-shellcheck@v1.18.0 + uses: reviewdog/action-shellcheck@v1.27.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} reporter: github-pr-review diff --git a/.github/workflows/yaml-lint.yml b/.github/workflows/yaml-lint.yml index 2c2a31f..aa0e29c 100644 --- a/.github/workflows/yaml-lint.yml +++ b/.github/workflows/yaml-lint.yml @@ -11,9 +11,9 @@ jobs: name: runner / yamllint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: yamllint - uses: reviewdog/action-yamllint@v1.8.0 + uses: reviewdog/action-yamllint@v1.19.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} reporter: github-pr-review