chore: add assertions for the forge context and use it instead of github where relevant (#748)
Refs forgejo/act#37 Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/748 Reviewed-by: Michael Kriese <michael.kriese@gmx.de> Co-authored-by: Earl Warren <contact@earl-warren.org> Co-committed-by: Earl Warren <contact@earl-warren.org>
This commit is contained in:
parent
07b9318ff7
commit
cd1a0f5076
5 changed files with 27 additions and 8 deletions
|
|
@ -108,7 +108,7 @@ jobs:
|
|||
actions-docs:
|
||||
needs: [build]
|
||||
runs-on: lxc-bookworm
|
||||
if: github.ref == 'refs/heads/main'
|
||||
if: forge.ref == 'refs/heads/main'
|
||||
strategy:
|
||||
matrix:
|
||||
info:
|
||||
|
|
@ -135,7 +135,7 @@ jobs:
|
|||
uses: https://data.forgejo.org/actions/cascading-pr@v2.1
|
||||
with:
|
||||
origin-url: ${{ env.GITHUB_SERVER_URL }}
|
||||
origin-repo: ${{ github.repository }}
|
||||
origin-repo: ${{ forge.repository }}
|
||||
origin-token: ${{ secrets.CASCADE_DOCS_ORIGIN_TOKEN }}
|
||||
origin-ref: refs/heads/main
|
||||
destination-url: https://codeberg.org
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue