Skip to content

Commit

Permalink
Show Admin Notice with PR & Link
Browse files Browse the repository at this point in the history
  • Loading branch information
carstingaxion committed Jun 2, 2024
1 parent 158cda1 commit 539482a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/prepare-plugin-zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ jobs:
path: '/wordpress/pr/gatherpress.zip',
},
},
{
"step": "writeFile",
"path": "/wordpress/wp-content/mu-plugins/gatherpress-nightly-notice.php",
"data": `<?php add_action('admin_notices', function() { echo '<div class=\"notice notice-info is-dismissible\"><p>Thanks for testing <a href=\"https://github.com/${owner}/${repo}/pulls/${prNumber}/\">GatherPress PR #${prNumber}</a></p></div>'; });`
},
],
};
// console.log( blueprint );
Expand Down

0 comments on commit 539482a

Please sign in to comment.