diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml index f77799f..0cb9ce5 100644 --- a/.github/workflows/dependabot.yml +++ b/.github/workflows/dependabot.yml @@ -22,12 +22,26 @@ jobs: go-version: stable - name: Test Code + id: test run: | go build -v ./... go test -v -race ./... cd converter go mod tidy go build -v ./... + go clean + cd .. + git config user.name "GitHub Actions" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git add . + git diff-index --quiet HEAD || echo "new_data=1" >> $GITHUB_OUTPUT + echo "date=$(TZ=PRC date +'%Y-%m-%d')" >> $GITHUB_OUTPUT + + - name: Commit + if: steps.test.outputs.new_data == 1 + run: | + git commit -m ${{ steps.test.outputs.date }} + git push merge: if: ${{ github.actor == 'dependabot[bot]' }} diff --git a/README.md b/README.md index 9387ca3..e237504 100644 --- a/README.md +++ b/README.md @@ -17,13 +17,8 @@ as an input, include jpg(jpeg), png, gif, tif(tiff), bmp, webp(decode only) and ## Installation - Required go version for building: go1.16 and up go get -u github.com/sunshineplan/imgconv -## Documentation - -https://pkg.go.dev/github.com/sunshineplan/imgconv - ## License [The MIT License (MIT)](https://raw.githubusercontent.com/sunshineplan/imgconv/main/LICENSE) diff --git a/converter/go.mod b/converter/go.mod index b4b9de9..97466ae 100644 --- a/converter/go.mod +++ b/converter/go.mod @@ -11,12 +11,12 @@ require ( require ( github.com/disintegration/imaging v1.6.2 // indirect github.com/hhrutter/lzw v1.0.0 // indirect - github.com/hhrutter/tiff v1.0.0 // indirect - github.com/mattn/go-runewidth v0.0.14 // indirect - github.com/pdfcpu/pdfcpu v0.4.0 // indirect + github.com/hhrutter/tiff v1.0.1 // indirect + github.com/mattn/go-runewidth v0.0.15 // indirect + github.com/pdfcpu/pdfcpu v0.5.0 // indirect github.com/pkg/errors v0.9.1 // indirect github.com/rivo/uniseg v0.4.4 // indirect - github.com/sunshineplan/pdf v1.0.5 // indirect + github.com/sunshineplan/pdf v1.0.7 // indirect golang.org/x/image v0.14.0 // indirect golang.org/x/text v0.14.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/converter/go.sum b/converter/go.sum index 4e3ed0b..7f605ff 100644 --- a/converter/go.sum +++ b/converter/go.sum @@ -2,19 +2,19 @@ github.com/disintegration/imaging v1.6.2 h1:w1LecBlG2Lnp8B3jk5zSuNqd7b4DXhcjwek1 github.com/disintegration/imaging v1.6.2/go.mod h1:44/5580QXChDfwIclfc/PCwrr44amcmDAg8hxG0Ewe4= github.com/hhrutter/lzw v1.0.0 h1:laL89Llp86W3rRs83LvKbwYRx6INE8gDn0XNb1oXtm0= github.com/hhrutter/lzw v1.0.0/go.mod h1:2HC6DJSn/n6iAZfgM3Pg+cP1KxeWc3ezG8bBqW5+WEo= -github.com/hhrutter/tiff v1.0.0 h1:T8/QVXiABO6Er7XCoExh4XPGyMO+X1ynf0V8kHui3t4= -github.com/hhrutter/tiff v1.0.0/go.mod h1:zluYmeCkNexc8HFzfc2MTVwA8gcPuFQp/ngjvIQ0CFo= -github.com/mattn/go-runewidth v0.0.14 h1:+xnbZSEeDbOIg5/mE6JF0w6n9duR1l3/WmbinWVwUuU= -github.com/mattn/go-runewidth v0.0.14/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= -github.com/pdfcpu/pdfcpu v0.4.0 h1:381iGNvMeLP+GFqIAqgd0LSj36AsK3JH4UTaF6D5jRc= -github.com/pdfcpu/pdfcpu v0.4.0/go.mod h1:9NDeS6hrCheauxw6YUlzgL/q6At2+PMzUKyFcfUzLLY= +github.com/hhrutter/tiff v1.0.1 h1:MIus8caHU5U6823gx7C6jrfoEvfSTGtEFRiM8/LOzC0= +github.com/hhrutter/tiff v1.0.1/go.mod h1:zU/dNgDm0cMIa8y8YwcYBeuEEveI4B0owqHyiPpJPHc= +github.com/mattn/go-runewidth v0.0.15 h1:UNAjwbU9l54TA3KzvqLGxwWjHmMgBUVhBiTjelZgg3U= +github.com/mattn/go-runewidth v0.0.15/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= +github.com/pdfcpu/pdfcpu v0.5.0 h1:F3wC4bwPbaJM+RPgm1D0Q4SAUwxElw7BhwNvL3iPgDo= +github.com/pdfcpu/pdfcpu v0.5.0/go.mod h1:UPcHdWcMw1V6Bo5tcWHd3jZfkG8cwUwrJkQOlB6o+7g= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= github.com/rivo/uniseg v0.4.4/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= -github.com/sunshineplan/pdf v1.0.5 h1:hPdpaqMZEHY99kDO5fBfmHrojBpmxbVsNreVALcFWEU= -github.com/sunshineplan/pdf v1.0.5/go.mod h1:Ljdz22+kL80CUXCIGdRUwA7PsfB7gj7ni4U71k5ZHp4= +github.com/sunshineplan/pdf v1.0.7 h1:62xlc079jh4tGLDjiihyyhwVFkn0IsxLyDpHplbG9Ew= +github.com/sunshineplan/pdf v1.0.7/go.mod h1:QsEmZCWBE3uFK8PCrM0pua1WDWLNU77YusiDEcY56OQ= github.com/sunshineplan/tiff v0.0.0-20220128141034-29b9d69bd906 h1:+yYRCj+PGQNnnen4+/Q7eKD2J87RJs+O39bjtHhPauk= github.com/sunshineplan/tiff v0.0.0-20220128141034-29b9d69bd906/go.mod h1:O+Ar7ouRbdfxLgoZLFz447/dvdM1NVKk1VpOQaijvAU= github.com/sunshineplan/utils v0.1.55 h1:Fx6UzZoOfCvuE+fqvcXuttqhHw34Ylz/wPBV3xy11AA=