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

Script to automate downloading and pushing RH icons to github #11

Open
2 tasks
mairin opened this issue Apr 15, 2021 · 6 comments
Open
2 tasks

Script to automate downloading and pushing RH icons to github #11

mairin opened this issue Apr 15, 2021 · 6 comments
Assignees

Comments

@mairin
Copy link
Collaborator

mairin commented Apr 15, 2021

General model:

  • When new icons are released internally, @mairin will receive an email notification.

  • When receiving the email notification, @mairin will run a script locally on her machine that will:

    • Pull down the 5 zip files from the internal repo
    • Unzip them
    • Create a directory tree with a common parent folder for them
    • Add the needed .git / metadata to be able to push to the repo under RedHatOfficial.
  • After running the script. @mairin should be able to do a git commit and git push to push to the new repo.

  • Create above script

  • Create repo for icons (current repo name is red-hat-icons; we could just call it iconset

@notklaatu
Copy link
Collaborator

Working on this now. I have a question @mairin

Will this git tree ever be "dirty"? In other words, do you ever work in the repo yourself? I don't want to accidentally add EVERYTHING in the repo if you have works-in-progress in there that you don't want auto-added/committed/pushed.

I'm trying to determine whether I need to take extra precautions to ensure that ONLY the new items are added and pushed, or whether we can just let Git figure it out.

@notklaatu
Copy link
Collaborator

The answer was that no, the state of the Git repo on the local machine will never be dirty.

@notklaatu
Copy link
Collaborator

notklaatu commented Jun 24, 2021

Complete. https://github.com/notklaatu/getzipgit

Now we need to create a Git repo to push to.

Note to self: in gitexclude file, list __MACOSX because there are a bunch in the icon set.

@notklaatu
Copy link
Collaborator

Created http://github.com/RedHatOfficial/iconset

Sent RPM to Mairín for testing.

I'm closing this issue; any further issue with getzipgit should be filed against that tool and not this repo.

@mairin
Copy link
Collaborator Author

mairin commented Jun 30, 2021

This is amazing, thanks @notklaatu! Giving it a test run now.

@notklaatu notklaatu reopened this Dec 16, 2021
@notklaatu
Copy link
Collaborator

Reopening. Bash for webDAV seems unreliable, re-implementing in Python or something else.

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

No branches or pull requests

2 participants