diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 1219b14..4fed044 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -128,6 +128,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + with: + ref: main - name: Update Homebrew Formula env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -137,10 +139,13 @@ jobs: run: | .github/scripts/update_formula - name: Commit and push changes + shell: bash run: | + set -x + # https://github.com/actions/checkout?tab=readme-ov-file#push-a-commit-using-the-built-in-token + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" git diff git add HomebrewFormula/gls.rb - git -c user.email='41898282+github-actions[bot]@users.noreply.github.com' \ - -c user.name='github-actions[bot]' \ - commit -m "Update Homebrew formula" + git commit -m "Update Homebrew formula" git push diff --git a/Cargo.lock b/Cargo.lock index 2287246..4ea68e0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -341,7 +341,7 @@ checksum = "6fb8d784f27acf97159b40fc4db5ecd8aa23b9ad5ef69cdd136d3bc80665f0c0" [[package]] name = "gls" -version = "0.1.14" +version = "0.1.15" dependencies = [ "anyhow", "assert_cmd", diff --git a/Cargo.toml b/Cargo.toml index 01235c9..ce0994a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "gls" description = "Support gitleaks config development and extend some gitleaks features." -version = "0.1.14" +version = "0.1.15" edition = "2021" rust-version = "1.70.0" readme = "README.md"