Reworked to use a custom token.
Some checks failed
Auto Maintenance Cycle / pre-commit Autoupdate (push) Failing after 38s

This commit is contained in:
2023-11-19 21:55:08 +01:00
parent 79f76b65f8
commit 1fd23b6ede
3 changed files with 33 additions and 33 deletions

View File

@ -23,37 +23,37 @@ jobs:
branch: update/pre-commit-hooks
push_options: --force
create_branch: true
- run: |
curl -X 'POST' \
'https://git.horstenkamp.eu/api/v1/repos/Philipp/gitea-act-create-pr/pulls' \
-H 'accept: application/json' \
-H 'authorization: Basic cGhpbGlwcDphc2ZqSMKnMzg5SjhmSzM=' \
-H 'Content-Type: application/json' \
-d '{
"base": "main",
"body": "string",
"head": "update/pre-commit-hooks",
"title": "Some title"
}'
- name: Make a curl request
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
curl -X 'POST' \
'https://git.horstenkamp.eu/api/v1/repos/Philipp/gitea-act-create-pr/pulls' \
-H 'accept: application/json' \
-H "Authorization: token ${GITHUB_TOKEN}" \
-H 'Content-Type: application/json' \
-d '{
"base": "main",
"body": "string",
"head": "update/pre-commit-hooks",
"title": "Some title"
}'
# - run: |
# curl -X 'POST' \
# 'https://git.horstenkamp.eu/api/v1/repos/Philipp/gitea-act-create-pr/pulls' \
# -H 'accept: application/json' \
# -H 'authorization: Basic cGhpbGlwcDphc2ZqSMKnMzg5SjhmSzM=' \
# -H 'Content-Type: application/json' \
# -d '{
# "base": "main",
# "body": "string",
# "head": "update/pre-commit-hooks",
# "title": "Some title"
# }'
# - name: Make a curl request
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# curl -X 'POST' \
# 'https://git.horstenkamp.eu/api/v1/repos/Philipp/gitea-act-create-pr/pulls' \
# -H 'accept: application/json' \
# -H "Authorization: token ${GITHUB_TOKEN}" \
# -H 'Content-Type: application/json' \
# -d '{
# "base": "main",
# "body": "string",
# "head": "update/pre-commit-hooks",
# "title": "Some title"
# }'
- name: My PR action
uses: ./
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ secrets.REPO_TOKEN }}
branch: update/pre-commit-hooks
title: My PR Title
body: My PR Body