Added the action response.
Some checks failed
Auto Maintenance Cycle / pre-commit Autoupdate (push) Failing after 36s

This commit is contained in:
Philipp Horstenkamp 2023-11-19 23:04:56 +01:00
parent 9365d681df
commit 6e53dbce14
Signed by: Philipp
GPG Key ID: DD53EAC36AFB61B4
3 changed files with 2 additions and 28 deletions

View File

@ -23,33 +23,6 @@ jobs:
branch: update/pre-commit-hooks branch: update/pre-commit-hooks
push_options: --force push_options: --force
create_branch: true 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 auth token' \
# -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 - name: My PR action
uses: ./ uses: ./
with: with:

View File

@ -16,7 +16,7 @@ inputs:
body: body:
description: Body of the pull request description: Body of the pull request
required: false required: false
default: Some default tile! default: Some default body!
assignees: assignees:
description: Comma-separated list of assignees for the pull request description: Comma-separated list of assignees for the pull request
required: false required: false

View File

@ -62,6 +62,7 @@ async function getAndPostPullRequests() {
const postResult = await postResponse.json().url; const postResult = await postResponse.json().url;
core.info("POST request completed successfully."); core.info("POST request completed successfully.");
core.info(`Created the post request under: ${postResult}`);
return postResult; return postResult;
} catch (error) { } catch (error) {
core.setFailed(`Action failed with error: ${error}`); core.setFailed(`Action failed with error: ${error}`);