fix(ci): repair failing Gitea Actions
This commit is contained in:
@@ -21,32 +21,38 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: api-company
|
path: api-company
|
||||||
|
|
||||||
|
# NOTE: cross-repo checkouts use SIBLING_REPOS_TOKEN, NOT the auto-injected
|
||||||
|
# GITEA_TOKEN. Gitea's automatic GITEA_TOKEN is scoped to THIS repo only,
|
||||||
|
# so checking out other repos fails with
|
||||||
|
# "Determining the default branch → not found". GITEA_TOKEN is also a
|
||||||
|
# reserved secret name that cannot be overridden, hence a separate secret.
|
||||||
|
# SIBLING_REPOS_TOKEN must be a PAT with read access to the API repos.
|
||||||
- name: Checkout zip-enrichment
|
- name: Checkout zip-enrichment
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: leeworks-agents/zip-enrichment
|
repository: leeworks-agents/zip-enrichment
|
||||||
token: ${{ secrets.GITEA_TOKEN }}
|
token: ${{ secrets.SIBLING_REPOS_TOKEN }}
|
||||||
path: zip-enrichment
|
path: zip-enrichment
|
||||||
|
|
||||||
- name: Checkout holidays
|
- name: Checkout holidays
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: leeworks-agents/holidays
|
repository: leeworks-agents/holidays
|
||||||
token: ${{ secrets.GITEA_TOKEN }}
|
token: ${{ secrets.SIBLING_REPOS_TOKEN }}
|
||||||
path: holidays
|
path: holidays
|
||||||
|
|
||||||
- name: Checkout air-quality
|
- name: Checkout air-quality
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: leeworks-agents/air-quality
|
repository: leeworks-agents/air-quality
|
||||||
token: ${{ secrets.GITEA_TOKEN }}
|
token: ${{ secrets.SIBLING_REPOS_TOKEN }}
|
||||||
path: air-quality
|
path: air-quality
|
||||||
|
|
||||||
- name: Checkout vin-decoder
|
- name: Checkout vin-decoder
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: leeworks-agents/vin-decoder
|
repository: leeworks-agents/vin-decoder
|
||||||
token: ${{ secrets.GITEA_TOKEN }}
|
token: ${{ secrets.SIBLING_REPOS_TOKEN }}
|
||||||
path: vin-decoder
|
path: vin-decoder
|
||||||
|
|
||||||
- name: Copy openapi.yaml specs into docs-site
|
- name: Copy openapi.yaml specs into docs-site
|
||||||
|
|||||||
@@ -13,9 +13,11 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install kustomize
|
- name: Install kustomize
|
||||||
|
# The Gitea act runner image runs as root and has no `sudo`, so install
|
||||||
|
# straight into a writable bin dir instead of `sudo mv … /usr/local/bin`.
|
||||||
run: |
|
run: |
|
||||||
curl -sL "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash
|
curl -sL "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash
|
||||||
sudo mv kustomize /usr/local/bin/
|
install -m 0755 kustomize /usr/local/bin/kustomize
|
||||||
|
|
||||||
- name: kustomize build flux/
|
- name: kustomize build flux/
|
||||||
run: kustomize build flux/ > /dev/null
|
run: kustomize build flux/ > /dev/null
|
||||||
|
|||||||
Reference in New Issue
Block a user