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

feat: add GitHub Actions setup and fast-forward actions #54

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

isometry
Copy link
Collaborator

@isometry isometry commented Sep 23, 2024

Tested with nektos/act locally:

name: test setup action

on:
  workflow_dispatch:

jobs:
  test-setup:
    runs-on: ubuntu-latest
    steps:
      - uses: isometry/ghup/actions/setup@a7610eaa0d6ffa25d8dd720483a67b6a9fabae50
      - name: Print Version
        run: ghup --version
$ act workflow_dispatch --secret=GITHUB_TOKEN=$(gh auth token)
INFO[0000] Using docker host 'unix:///var/run/docker.sock', and daemon socket 'unix:///var/run/docker.sock' 
[test setup action/test-setup] 🚀  Start image=catthehacker/ubuntu:act-latest
[test setup action/test-setup]   🐳  docker pull image=catthehacker/ubuntu:act-latest platform=linux/amd64 username= forcePull=true
[test setup action/test-setup] using DockerAuthConfig authentication for docker pull
[test setup action/test-setup]   🐳  docker create image=catthehacker/ubuntu:act-latest platform=linux/amd64 entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[test setup action/test-setup]   🐳  docker run image=catthehacker/ubuntu:act-latest platform=linux/amd64 entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[test setup action/test-setup]   🐳  docker exec cmd=[node --no-warnings -e console.log(process.execPath)] user= workdir=
[test setup action/test-setup]   ☁  git clone 'https://github.com/isometry/ghup' # ref=a7610eaa0d6ffa25d8dd720483a67b6a9fabae50
[test setup action/test-setup] ⭐ Run Main isometry/ghup/actions/setup@a7610eaa0d6ffa25d8dd720483a67b6a9fabae50
[test setup action/test-setup]   🐳  docker cp src=$HOME/.cache/act/isometry-ghup-actions-setup@a7610eaa0d6ffa25d8dd720483a67b6a9fabae50/ dst=/var/run/act/actions/isometry-ghup-actions-setup@a7610eaa0d6ffa25d8dd720483a67b6a9fabae50/
[test setup action/test-setup]   🐳  docker exec cmd=[node /var/run/act/actions/isometry-ghup-actions-setup@a7610eaa0d6ffa25d8dd720483a67b6a9fabae50/actions/setup/dist/index.js] user= workdir=
[test setup action/test-setup]   💬  ::debug::isExplicit: 0.10.0
[test setup action/test-setup]   💬  ::debug::explicit? true
[test setup action/test-setup]   💬  ::debug::checking cache: /opt/hostedtoolcache/ghup/0.10.0/x64
[test setup action/test-setup]   💬  ::debug::Found tool in cache ghup 0.10.0 x64
[test setup action/test-setup]   ✅  Success - Main isometry/ghup/actions/setup@a7610eaa0d6ffa25d8dd720483a67b6a9fabae50
[test setup action/test-setup]   ⚙  ::add-path:: /opt/hostedtoolcache/ghup/0.10.0/x64
[test setup action/test-setup] ⭐ Run Main Print Version
[test setup action/test-setup]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/1] user= workdir=
| ghup version 0.10.0-d738072 (built 2024-09-23T12:59:38Z)
[test setup action/test-setup]   ✅  Success - Main Print Version
[test setup action/test-setup] Cleaning up container for job test-setup
[test setup action/test-setup] 🏁  Job succeeded

mkushakov
mkushakov previously approved these changes Sep 23, 2024
@isometry isometry force-pushed the feature/setup-action branch 2 times, most recently from d269afa to 9c7596a Compare September 24, 2024 12:15
README.md Outdated Show resolved Hide resolved
@isometry isometry force-pushed the feature/setup-action branch 2 times, most recently from 990af23 to cbe5da9 Compare September 24, 2024 17:59
mkushakov
mkushakov previously approved these changes Sep 25, 2024
@isometry isometry force-pushed the feature/setup-action branch from cbe5da9 to 7b74aa2 Compare September 25, 2024 08:33
@isometry isometry changed the title feat: add GitHub Actions setup action feat: add GitHub Actions setup and fast-forward actions Sep 25, 2024
@isometry isometry force-pushed the feature/setup-action branch from 7b74aa2 to ba1115b Compare September 25, 2024 08:48
@isometry isometry enabled auto-merge (squash) September 25, 2024 08:50
@isometry isometry disabled auto-merge September 25, 2024 09:02
mkushakov
mkushakov previously approved these changes Sep 25, 2024
@isometry isometry merged commit 5ebaab1 into nexthink-oss:main Sep 25, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

3 participants