sorawee
2020-11-16 14:31:56

@pocmatos did you mean to remove “fetch-depth: 0”?


sorawee
2020-11-16 14:32:17

It’s still there in the commit that you pushed


pocmatos
2020-11-16 14:39:48

i push forced it … you sure?


pocmatos
2020-11-16 14:44:37

omg - right. I push forced an empty commit apparently and left the file unstaged locally. sigh


pocmatos
2020-11-16 14:44:38

thanks


sorawee
2020-11-16 16:49:40

Crazy idea: Instead of diffing the files, is it possible for GitHub Action to overwrite the existing file on a push action? This is similar to how people use git pre-commit hook to cleanup trailing whitespaces.


sorawee
2020-11-16 16:50:27

Though I guess there’s a benefit of seeing the error


pocmatos
2020-11-16 16:50:32

Not a good idea to push to your own repo from CI, I think.


pocmatos
2020-11-16 16:51:23

It is definitely possible, I think if you give secret to the CI to push to the repo. Then you need to ensure (and there’s currently no good way) that a push to the repo does not itself trigger CI.


pocmatos
2020-11-16 16:51:31

so you have a CI infinite loop.


pocmatos
2020-11-16 16:52:07

I looked into it in the past and talked to a few expert CI people and the agreement seems to be that the CI for project X should not itself push to X.


pocmatos
2020-11-16 16:52:17

Therefore I took the easy road and instead fail the CI.


sorawee
2020-11-16 16:52:28

yep, makes sense


pocmatos
2020-11-16 16:52:31

The user will be notified of this on PR or Push and fix it.


pocmatos
2020-11-16 16:53:25

The other possibility is to have a pre-commit hook that runs the checks before the commit through a make check or something.


sorawee
2020-11-16 16:54:00

But we can’t enforce the pre-commit hook for everyone, right?


sorawee
2020-11-16 16:54:20

That’s my biggest letdown for Git hooks. It looks like people need to individually set it up.


pocmatos
2020-11-16 16:55:14

right.


pocmatos
2020-11-16 16:55:29

I think as part of a process, we can add pre-commit hooks that people should use…


pocmatos
2020-11-16 16:55:33

or


pocmatos
2020-11-16 16:55:43

suggest that people should use …


pocmatos
2020-11-16 16:55:49

(forgot the name of the program)


pocmatos
2020-11-16 16:55:50

lol


pocmatos
2020-11-16 16:55:51

one sec


pocmatos
2020-11-16 16:56:17

suggest that people should use act locally before committing.


pocmatos
2020-11-16 16:56:17

pocmatos
2020-11-16 16:56:35

although unfortunately act doesn’t work well a lot of the time, at least for our actions.


notjack
2020-11-16 19:39:16

would pushing to pull requests be more reasonable?


pocmatos
2020-11-17 05:32:19

Yes - that would be cool indeed.


pocmatos
2020-11-17 05:32:57

“Hey, you forgot to generate the build.md file, here’s a PR that does it for you.” :slightly_smiling_face:


pocmatos
2020-11-17 05:33:02

I like that.


pocmatos
2020-11-17 05:33:33

I have been asking this for years but I will ask again. Who wants to work on a github api pkg for racket?


pocmatos
2020-11-17 05:33:37

:slightly_smiling_face:


pocmatos
2020-11-17 05:35:27

The one I know of looks unmaintained and has a pagination issue: https://github.com/eu90h/racket-github-api/issues/4


pocmatos
2020-11-17 05:36:45

I guess then we would need a github user to represent a racket bot so that CI could create the PRs as him.


pocmatos
2020-11-17 05:36:58

The racket bot should be called rackot?


pocmatos
2020-11-17 05:37:02

racoon?


pocmatos
2020-11-17 05:37:25

:wink:


pocmatos
2020-11-17 05:39:18

ohhhhhhhhhhhhhh noooooooooooooo


pocmatos
2020-11-17 05:39:37

the set-env command is disabled in CI - a lot of our workflows will fail… :disappointed:


pocmatos
2020-11-17 05:40:08

pocmatos
2020-11-17 05:40:23

wow they moved quickly from deprecating them and disabling them.


pocmatos
2020-11-17 05:52:44

OK - I removed all instances of set-env. It should be back working now.