use hardcoded gitea url and main branch for pr creation
This commit is contained in:
@@ -95,7 +95,7 @@ jobs:
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
api="${GITHUB_SERVER_URL}/api/v1/repos/${GITHUB_REPOSITORY}"
|
||||
api="https://gitea.unrail.xyz/api/v1/repos/thomas/nixos-config"
|
||||
branch="bot/handy-${{ steps.update.outputs.version }}"
|
||||
|
||||
existing=$(curl -fsS \
|
||||
@@ -116,7 +116,7 @@ jobs:
|
||||
{
|
||||
\"title\": \"update handy to ${{ steps.update.outputs.version }}\",
|
||||
\"head\": \"${branch}\",
|
||||
\"base\": \"${GITHUB_REF_NAME}\",
|
||||
\"base\": \"main\",
|
||||
\"body\": \"automated update of handy appimage version and hash\"
|
||||
}
|
||||
JSON
|
||||
|
||||
@@ -96,7 +96,7 @@ jobs:
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
api="${GITHUB_SERVER_URL}/api/v1/repos/${GITHUB_REPOSITORY}"
|
||||
api="https://gitea.unrail.xyz/api/v1/repos/thomas/nixos-config"
|
||||
branch="bot/helium-${{ steps.update.outputs.version }}"
|
||||
|
||||
# Skip if PR for this branch already exists
|
||||
@@ -118,7 +118,7 @@ jobs:
|
||||
{
|
||||
\"title\": \"update helium to ${{ steps.update.outputs.version }}\",
|
||||
\"head\": \"${branch}\",
|
||||
\"base\": \"${GITHUB_REF_NAME}\",
|
||||
\"base\": \"main\",
|
||||
\"body\": \"automated update of helium appimage version and hash\"
|
||||
}
|
||||
JSON
|
||||
|
||||
@@ -94,7 +94,7 @@ jobs:
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
api="${GITHUB_SERVER_URL}/api/v1/repos/${GITHUB_REPOSITORY}"
|
||||
api="https://gitea.unrail.xyz/api/v1/repos/thomas/nixos-config"
|
||||
branch="bot/zen-browser-${{ steps.update.outputs.version }}"
|
||||
|
||||
existing=$(curl -fsS \
|
||||
@@ -115,7 +115,7 @@ jobs:
|
||||
{
|
||||
\"title\": \"update zen browser to ${{ steps.update.outputs.version }}\",
|
||||
\"head\": \"${branch}\",
|
||||
\"base\": \"${GITHUB_REF_NAME}\",
|
||||
\"base\": \"main\",
|
||||
\"body\": \"automated update of zen browser appimage version and hash\"
|
||||
}
|
||||
JSON
|
||||
|
||||
Reference in New Issue
Block a user