Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Ground Controller Lvl 2
Message 1 of 3

will not trigger pushing via Github actions

Solved! Go to Solution.

Hello, I want to the workflow build->push->github pages.

First, I wrote https://github.com/MokkeMeguru/portfolio/blob/master/.github/workflows/clojure-build.yml for pushing the production branch to the master branch.

 

And Next,  I wrote https://github.com/MokkeMeguru/portfolio/blob/master/.github/workflows/clojure-build.yml for pushing to the master branch to the gh-pages branch.

 

But I found github cannot trigger the push from Github Actions.

 

Can you tell me how to solve this problem?

2 Replies
Highlighted
Ground Controller Lvl 2
Message 2 of 3

Re: will not trigger pushing via Github actions

typo: Hello, I want to the workflow build->push->github pages. 

=> Hello, I want to build the workflow build->push->github pages. 

Highlighted
Solution
Ground Controller Lvl 2
Message 3 of 3

Re: will not trigger pushing via Github actions

I found the solution. 

It's very simple.

We should not use GITHUB_TOKEN.

 

1. we create a personal token in your "Github's settings->Developer settings->Personal access tokens->Generate new token" (not repository's settings).

2. create new token. You NEED TO check "*repo" and "repo*".

2. store the token's name and its value

3. In you repository's settings->Secrets->Add a new secret

4. replace GITHUB_TOKEN to these secrets.