Skip to content

Refactor GitHub Actions workflows - #764

Merged
LeoColomb merged 4 commits into
mainfrom
fix/workflow-3
Jun 17, 2023
Merged

LeoColomb merged 4 commits into
mainfrom
fix/workflow-3

Conversation

@LeoColomb

@LeoColomb LeoColomb commented Jun 16, 2023 •

Copy link
Copy Markdown
Collaborator

Apologies for this barely readable PR. 😬
The goal was to find a good compromise to make it run (the scripts folder is currently not available, workflow broken).

Steps to understand:

  • Moving the release-notes process into a separate job
    • Comes with better performances, as it runs once for all tags
  • The notes script now creates the release itself
    • Also way better workflow output
  • Switching from GHA secrets to GHA variable
    • Required to split package name extraction and checkout local scripts
    • 👉 Could you please create these variables in repo's settings, and delete respective secrets?
      • PACKAGE_PREFIX: wordpress-
      • META_PACKAGE: roots/wordpress

@LeoColomb LeoColomb changed the title Fix incorrect context for GitHub Actions workflow Refactor GitHub Actions workflows Jun 16, 2023
@LeoColomb
LeoColomb marked this pull request as ready for review June 16, 2023 23:05
@LeoColomb
LeoColomb requested a review from swalkinshaw June 16, 2023 23:05
@LeoColomb
LeoColomb enabled auto-merge (squash) June 17, 2023 01:48
@swalkinshaw

Copy link
Copy Markdown
Member

TIL about variables. Done 👍

@swalkinshaw swalkinshaw left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we expecting a test failure?

@LeoColomb
LeoColomb merged commit 443bf66 into main Jun 17, 2023
@LeoColomb
LeoColomb deleted the fix/workflow-3 branch June 17, 2023 13:52
@LeoColomb

LeoColomb commented Jun 17, 2023 •

Copy link
Copy Markdown
Collaborator Author

@swalkinshaw Yes, the error was due to the vars. Now it runs 🎊
https://github.com/roots/wordpress-packager/actions/runs/5298500620

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.

2 participants