github-push-action icon indicating copy to clipboard operation
github-push-action copied to clipboard

Not working on Mac

Open tofi86 opened this issue 4 years ago • 8 comments

I'm running a build on Mac OS and try to push changes back with the following config:

jobs:
  release:
    runs-on: macos-latest
    steps:
    - uses: actions/checkout@v2

    ...

    - name: Set up GitHub Actions git user
      run: |
        git config --local user.email "[email protected]"
        git config --local user.name "GitHub Action"

    - name: do changes
      run: ...

    - name: Push maven-release-plugin changes
      uses: ad-m/[email protected]
      with:
        tags: true
        github_token: ${{ secrets.GITHUB_TOKEN }}

However, this results in an error:

Push maven-release-plugin changes

Run ad-m/[email protected]
  with:
    tags: true
    github_token: ***
    branch: master
    directory: .
  env:
    JAVA_HOME: /Users/runner/hostedtoolcache/jdk/8.0.242/x64
    JAVA_HOME_8.0.242_x64: /Users/runner/hostedtoolcache/jdk/8.0.242/x64
##[error]Container action is only supported on Linux

Why is it not supported on Mac OS? Does anyone have a workaround for that?

Thanks for your help and all the best, Tobias

tofi86 avatar Mar 22 '20 23:03 tofi86

+1 to this; using this in worflows where ubuntu-latest is not supported but MacOS works, so would be very handy to be able to use this action on MacOS environemt too

thibautjombart avatar May 11 '20 18:05 thibautjombart

For what it's worth, the project I would need this for is the real-time analysis of COVID-19 data pipelines for the London School of Hygiene and Tropical Medicine - modelling group.

thibautjombart avatar May 12 '20 14:05 thibautjombart

What version of action are you using? Could you try ad-m/github-push-action@master? I believe we not longer use container-based action, so issue is no longer valid, but I don't have any experience with GitHub Actions on macOS.

ad-m avatar May 13 '20 20:05 ad-m

@ad-m If this is fixed, can you make a new release tag? It feels fragile to depend on an action subject to breaking changes in the master branch.

mzabaluev avatar May 15 '20 08:05 mzabaluev

Could you confirm it is fixed?

ad-m avatar May 15 '20 08:05 ad-m

@ad-m Works fine on MacOS: https://github.com/mzabaluev/test-github-push/runs/680534681?check_suite_focus=true

mzabaluev avatar May 16 '20 08:05 mzabaluev

Feel free to crib from the workflow in my test repository for testing the action in all environments :grin:

mzabaluev avatar May 16 '20 08:05 mzabaluev

Sorry about the late reply. The current @master works fine. Thanks! :)

thibautjombart avatar May 21 '20 17:05 thibautjombart