Giter VIP home page Giter VIP logo

Comments (4)

hutson avatar hutson commented on July 19, 2024 2

Here is what our team does using an Actions workflow on our GHES instance:

name: actions-sync

on:
  workflow_dispatch:
    inputs:
      token:
        description: 'Personal access token with repo permissions to GitHub.example.com'
        required: true

jobs:
  actions-org:
    runs-on: [self-hosted, ubuntu-latest]
    steps:
      - name: setup
        run: |
          wget https://github.com/actions/actions-sync/releases/download/v202009231612/gh_202009231612_linux_amd64.tar.gz
          tar -xf gh_202009231612_linux_amd64.tar.gz
      - name: sync
        run: |
          mkdir -p cache
          # can't sync actions/cache, actions/upload-release-asset as it has "been retired and cannot be reused"
          ./bin/actions-sync sync \
            --cache-dir "cache" \
            --destination-token "${{ github.event.inputs.token }}" \
            --destination-url "https://github.example.com" \
            --repo-name-list "\
                              actions/.github,\
                              actions/actions-sync,\
                              actions/add-to-project,\
                              actions/boost-versions,\
                              actions/checkout,\
                              actions/container-action,\
                              actions/container-toolkit-action,\
                              actions/create-release,\
                              actions/delete-package-versions,\
                              actions/deploy-pages,\
                              actions/download-artifact,\
                              actions/example-services,\
                              actions/first-interaction,\
                              actions/github,\
                              actions/github-script,\
                              actions/go-versions,\
                              actions/hello-world-docker-action,\
                              actions/hello-world-javascript-action,\
                              actions/heroku,\
                              actions/http-client,\
                              actions/humans.txt,\
                              actions/javascript-action,\
                              actions/jekyll-build-pages,\
                              actions/labeler,\
                              actions/node-versions,\
                              actions/publish-action,\
                              actions/python-versions,\
                              actions/runner,\
                              actions/setup-dotnet,\
                              actions/setup-elixir,\
                              actions/setup-go,\
                              actions/setup-haskell,\
                              actions/setup-java,\
                              actions/setup-node,\
                              actions/setup-python,\
                              actions/setup-ruby,\
                              actions/stale,\
                              actions/starter-workflows,\
                              actions/toolkit,\
                              actions/typescript-action,\
                              actions/upload-artifact,\
                              actions/versions-package-tools,\
                              actions/virtual-environments,\
                              actions/virtual-environments-packages"

from actions-sync.

andymckay avatar andymckay commented on July 19, 2024 1

That sounds like a great idea. There's at least one situation where an Action wouldn't work, the case where an instance of GHES is completely air gapped from the rest of the internet. However, I think for the moment we could figure out what an Action would look like, the permissions required and at least document this well in this repo if people wanted to do that.

from actions-sync.

github-actions avatar github-actions commented on July 19, 2024

This issue is stale because it has been open for 30 days with no activity.

from actions-sync.

github-actions avatar github-actions commented on July 19, 2024

This issue was closed because it has been inactive for 14 days since being marked as stale.

from actions-sync.

Related Issues (20)

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.