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

Easier to fetch Actions org #33

Open
hutson opened this issue Apr 20, 2022 · 4 comments
Open

Easier to fetch Actions org #33

hutson opened this issue Apr 20, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@hutson
Copy link

hutson commented Apr 20, 2022

We are currently using actions-sync to keep our GHES actions org in-sync with the public actions org.

Could we please have a flag that allows us to just sync the entire actions org so that we do not need to enumerate every repository in the actions org?

At the moment our Actions workflow looks like:

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"
@ajaykn
Copy link
Contributor

ajaykn commented May 31, 2022

@hutson Thanks for raising the issue. Will be adding to backlog and also keep this issue open to track for more upvotes.

Currently we can fetch list of repos from an organization using github Api.
https://docs.github.com/en/rest/repos/repos#list-organization-repositories

And may be in your workflow, pass the result to -repo-name-list. Does that work in your case ?

@ajaykn ajaykn added the enhancement New feature or request label May 31, 2022
@AdrianDsg
Copy link
Contributor

Hi @ajaykn,
Unfortunately I couldn't find the backlog you mentioned. I assume it's likely a internal board at GitHub Inc. I'd be very grateful if could share a short update on the current state of this issue.

Copy link

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

@github-actions github-actions bot added the stale label Apr 19, 2024
@AdrianDsg
Copy link
Contributor

Hi @ajaykn,
Are there any news on this?

@github-actions github-actions bot removed the stale label Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants