Skip to content

fatal: You are not currently on a branch. #317

Closed
@bidipeppercrap

Description

@bidipeppercrap

config

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v1
        with:
          node-version: 12
      - run: npm ci
      - name: Build CSS
        run: npm run build
      - name: Push to GitHub
        run: |
          git config user.name github-actions
          git config user.email github-actions@github.com
          git add .
          git commit -m "Build CSS"
          git push

log

Run git config user.name github-actions
  git config user.name github-actions
  git config user.email github-actions@github.com
  git add .
  git commit -m "Build CSS"
  git push
  shell: /bin/bash -e {0}
[detached HEAD 706b5f8] Build CSS
 2 files changed, 2 insertions(+), 2 deletions(-)
 rewrite dist/css/plane.min.css.map (83%)
fatal: You are not currently on a branch.
To push the history leading to the current (detached HEAD)
state now, use

    git push origin HEAD:<name-of-remote-branch>

##[error]Process completed with exit code 128.

tried (not working)

    fetch-depth: 0
    ref: ${{ github.event.pull_request.head.ref }}
    fetch-depth: 0
    ref: master

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions