Giter Club home page Giter Club logo

rebase-github-action's People

Contributors

deedeeg avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

lcenchew

rebase-github-action's Issues

ssh: Could not resolve hostname x-access-token: Name does not resolve

From here comes the x-access-token

git remote add origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"

But the origin gets already set by actions/checkout@v2

I think if the project is based on

- uses: actions/checkout@v2
  with:
    fetch-depth: 0

as a needed previous task, it can save code.
It's the standard task by github to checkout the current repo.
And since V2 the fetch-depth: 0 is needed or it will be depth 1 by default, resulting in only a top commit breaking rebasing. (They decide this change because of performance reasons)

Error log:

  with:
    base_ref: q-mr1
    head_branch: MartinX3/lineage-17.1
    github_token: ***
  env:
    upstream: sonyxperiadev/device-sony-pdx201
    rebase_head: MartinX3/lineage-17.1
    rebase_base: q-mr1
/usr/bin/docker run --name e5c359952171f4361477d96ceab5045332ccc_e4ac42 --label 1e5c35 --workdir /github/workspace --rm -e upstream -e rebase_head -e rebase_base -e INPUT_BASE_REF -e INPUT_HEAD_BRANCH -e INPUT_GITHUB_TOKEN -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_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_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_PATH -e GITHUB_ENV -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/android_device_sony_pdx201/android_device_sony_pdx201":"/github/workspace" 1e5c35:9952171f4361477d96ceab5045332ccc  "q-mr1" "MartinX3/lineage-17.1"
+ [[ -n '' ]]
+ BASE_REF=q-mr1
q-mr1
BASE_REF=q-mr1
HEAD_BRANCH=MartinX3/lineage-17.1
Initialized empty Git repository in /github/workspace/_tmp/.git/
+ HEAD_BRANCH=MartinX3/lineage-17.1
+ [[ -z q-mr1 ]]
+ [[ -z MartinX3/lineage-17.1 ]]
+ git check-ref-format --allow-onelevel --normalize q-mr1
++ git check-ref-format --allow-onelevel --normalize q-mr1
+ BASE_REF=q-mr1
+ echo BASE_REF=q-mr1
+ echo HEAD_BRANCH=MartinX3/lineage-17.1
+ mkdir _tmp
+ cd _tmp
+ git init
+ git config user.name MartinX3
+ git config user.email [email protected]
origin	x-access-token:@github.com/MartinX3-AndroidDevelopment-LineageOS/android_device_sony_pdx201.git (fetch)
origin	x-access-token:@github.com/MartinX3-AndroidDevelopment-LineageOS/android_device_sony_pdx201.git (push)
+ git remote add origin x-access-token:@github.com/MartinX3-AndroidDevelopment-LineageOS/android_device_sony_pdx201.git
+ git remote set-url origin x-access-token:@github.com/MartinX3-AndroidDevelopment-LineageOS/android_device_sony_pdx201.git
+ git remote -v
+ git remote update
Fetching origin
ssh: Could not resolve hostname x-access-token: Name does not resolve
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
error: Could not fetch origin```

This GitHub Action isn't actively maintained

Hi folks,

I put this Action together some time ago, but then decided I didn't need it for the project I initially made it for. It has sat "dormant" since then.

If you have a better implementation for this, and you want the local-git-rebase name on the marketplace, please let me
know.

This implementation mostly works, but might have some bugs. Apparently it can conflict with the very popular CheckoutV2 action, for example. See #1.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.