Skip to content

Commit

Permalink
fix: update golangci-lint
Browse files Browse the repository at this point in the history
see golangci/golangci-lint-action#37

Signed-off-by: Manfred Touron <94029+moul@users.noreply.github.com>
  • Loading branch information
moul committed Jul 12, 2020
1 parent 61dad8c commit d758c8f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
COMMANDS = hubsync checkoutmaster maintenance prlist
REPOS ?= $(wildcard */)
OPTS ?= ;
REPOMAN ?= ~/go/src/moul.io/repoman

.PHONY: $(COMMANDS)
$(COMMANDS):
@for repo in $(REPOS); do ( set -e; \
echo "cd $$repo && make -s -f ../Makefile _do.$@ $(OPTS)"; \
cd $$repo && make -s -f ../Makefile _do.$@ $(OPTS) \
echo "cd $$repo && make -s -f $(REPOMAN)/Makefile _do.$@ $(OPTS)"; \
cd $$repo && make -s -f $(REPOMAN)/Makefile _do.$@ $(OPTS) \
); done

_do.checkoutmaster: _do.hubsync
Expand All @@ -33,6 +34,10 @@ _do.maintenance: _do.checkoutmaster
# authors
if [ -f rules.mk ]; then make generate.authors; git add AUTHORS; fi || true

# golangci-lint fix
sed -i "s/version: v1.26/version: v1.28/" .github/workflows/*.yml
sed -i "s/version: v1.27/version: v1.28/" .github/workflows/*.yml

# apply changes
git diff
git diff --cached
Expand All @@ -41,4 +46,4 @@ _do.maintenance: _do.checkoutmaster
git status
git commit -s -a -m "chore: repo maintenance 馃" -m "more details: https://github.com/moul/repoman"
git push -u origin dev/moul/maintenance -f
hub pull-request -m "chore: repo maintenance 馃" -m "more details: https://github.com/moul/repoman" || $(MAKE) -f ../Makefile _do.prlist
hub pull-request -m "chore: repo maintenance 馃" -m "more details: https://github.com/moul/repoman" || $(MAKE) -f $(REPOMAN)/Makefile _do.prlist
2 changes: 1 addition & 1 deletion as-moul-bot
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ GIT_COMMITTER_NAME="moul-bot" \
GIT_AUTHOR_EMAIL="bot@moul.io" \
GIT_COMMITTER_EMAIL="bot@moul.io" \
GITHUB_TOKEN="`cat ~/.config/hub-moul-bot | grep oauth_token | awk '{print $2}'`" \
$@
"$@"

0 comments on commit d758c8f

Please sign in to comment.