Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mirroring of a pull requests fails #28

Open
kofemann opened this issue Oct 9, 2024 · 0 comments
Open

mirroring of a pull requests fails #28

kofemann opened this issue Oct 9, 2024 · 0 comments

Comments

@kofemann
Copy link

kofemann commented Oct 9, 2024

Really nice action. A tiny fix will make it great.

action configuration

name: Mirror and run GitLab CI

on:
  push:
  pull_request:
    types: [opened, reopened]

jobs:
  to_gitlab:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0

      - name: Mirror + trigger CI
        uses: SvanBoxel/[email protected]
        with:
          args: "https://gitlaxxxxxe"
        env:
          FOLLOW_TAGS: "true"
          FORCE_PUSH: "false"
          GITLAB_HOSTNAME: "gilabxxxxxe"
          GITLAB_USERNAME: "dxxx"
          GITLAB_PASSWORD: ${{ secrets.GITLAB_PASSWORD }}
          GITLAB_PROJECT_ID: "21"
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          POLL_TIMEOUT: 60

Failure:

Run SvanBoxel/[email protected]
/usr/bin/docker run --name cabce3406b7a1ed5c4ba2a5ef1847791adb27_379d96 --label 1cabce --workdir /github/workspace --rm -e "FOLLOW_TAGS" -e "FORCE_PUSH" -e "GITLAB_HOSTNAME" -e "GITLAB_USERNAME" -e "GITLAB_PASSWORD" -e "GITLAB_PROJECT_ID" -e "GITHUB_TOKEN" -e "POLL_TIMEOUT" -e "INPUT_ARGS" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "G
error: pathspec '7667/merge' did not match any file(s) known to git
fatal: ref HEAD is not a symbolic ref
/entrypoint.sh: line 7: 1: unbound variable

related issue: #27

@kofemann kofemann changed the title miroring of a pool requests failes: miroring of a pull requests fails Oct 9, 2024
@kofemann kofemann changed the title miroring of a pull requests fails mirroring of a pull requests fails Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant