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

Automations: Create changes only zip on release #577

Open
luke11brown opened this issue Oct 15, 2023 · 1 comment
Open

Automations: Create changes only zip on release #577

luke11brown opened this issue Oct 15, 2023 · 1 comment
Labels
enhancement For new or improved features help wanted Extra attention is needed up-for-grabs Unassigned

Comments

@luke11brown
Copy link
Contributor

luke11brown commented Oct 15, 2023

What is the current situation?

https://github.com/VATSIM-UK/uk-controller-pack/blob/main/.github/workflows/Create%20ZIP%20on%20release.yml
creates full ZIP on release.

Changes only created every 28 days using git command
Git diff --diff-filter=d --name-only -z [Commit at last release]^ | xargs -0 git archive -o changes_only.zip HEAD --

What is the proposed change?

Create workflow in similar vein to existing to create a changes only zip on release. The workflow must do the following:

  • Copy README from docs folder
  • get release tag and use it in created zip title
  • include all changed files since last release, excluding .prf files that only have the sector file location line changed.
  • exclude .py files
  • upload zip as release asset

Reference materials (e.g. screenshots)

Additional context

@luke11brown luke11brown added enhancement For new or improved features help wanted Extra attention is needed up-for-grabs Unassigned labels Oct 15, 2023
@luke11brown
Copy link
Contributor Author

luke11brown commented Oct 31, 2023

Possible solution
git diff --diff-filter=d --name-only -z [Commit at last release]^ | xargs -0 git diff [Commit at last release] HEAD -- | awk '/^\+\+\+ b/ {print $3}' | grep '\.prf$' | xargs -I {} git archive -o changes_only.zip HEAD --

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement For new or improved features help wanted Extra attention is needed up-for-grabs Unassigned
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant