Skip to content

Commit d216852

Browse files
authored
fix(workflow): use token-authenticated remote for website push
1 parent c9f3ce2 commit d216852

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

‎.github/workflows/generate_profile_workflow.yml‎

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -82,25 +82,17 @@ jobs:
8282
run: |
8383
python ./.github/workflows/profile_generation_script.py ${{steps.changed-files.outputs.all_changed_files}} bioschemas.github.io
8484
85-
- name: Setup the Github TOKEN
86-
uses: oleksiyrudenko/gha-git-credentials@v2-latest
87-
with:
88-
path: bioschemas.github.io
89-
email: alban.gaignard@univ-nantes.fr
90-
name: albangaignard
91-
actor: albangaignard
92-
token: '${{secrets.BS_GH_TOKEN}}'
93-
9485
- name: Commit and Push the changes in the website
9586
run: |
9687
sleep 5
9788
cd bioschemas.github.io
9889
git config user.name "albangaignard"
9990
git config user.email "alban.gaignard@univ-nantes.fr"
91+
git remote set-url origin https://x-access-token:${{ secrets.BS_GH_TOKEN }}@github.com/BioSchemas/bioschemas.github.io.git
10092
git status
10193
git add .
10294
git commit -m "Updating Profile"
103-
git push --set-upstream -u origin `date +%Y_%m_%d-%H_%M`
95+
git push --set-upstream -u origin "$(git branch --show-current)"
10496
10597
- name: Create a pull request
10698
run: |

0 commit comments

Comments
 (0)