Skip to content

Commit

Permalink
Remove StandWithUkraine banner
Browse files Browse the repository at this point in the history
  • Loading branch information
huangzhhui committed Mar 7, 2022
1 parent 575fbfb commit b3922d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 38 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,41 +56,3 @@ jobs:
asset_path: ./composer.phar
asset_name: composer.phar
asset_content_type: application/octet-stream

- name: Configure GPG key and sign phar
run: |
mkdir -p ~/.gnupg/
chmod 0700 ~/.gnupg/
echo "$GPG_SIGNING_KEY" > ~/.gnupg/private.key
gpg --import ~/.gnupg/private.key
gpg -u [email protected] --detach-sign --output composer.phar.asc composer.phar
env:
GPG_SIGNING_KEY: |
${{ secrets.GPG_KEY_161DFBE342889F01DDAC4E61CBB3D576F2A0946F }}
- name: Upload phar signature
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./composer.phar.asc
asset_name: composer.phar.asc
asset_content_type: application/octet-stream

# This step requires a secret token with `pull` access to composer/docker. The default
# secrets.GITHUB_TOKEN is scoped to this repository only which is not sufficient.
- name: "Open issue @ Docker repository"
uses: actions/github-script@v2
with:
github-token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
script: |
// github.ref value looks like 'refs/tags/TAG', cleanup
const tag = "${{ github.ref }}".replace(/refs\/tags\//, '');
// create new issue on Docker repository
github.issues.create({
owner: "${{ github.repository_owner }}",
repo: "docker",
title: `New Composer tag: ${ tag }`,
body: `https://github.com/${{ github.repository }}/releases/tag/${ tag }`,
});
3 changes: 3 additions & 0 deletions src/Composer/Util/HttpDownloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,9 @@ private function getResponse(int $index): Response
*/
public static function outputWarnings(IOInterface $io, string $url, $data): void
{
if (strpos($data['info'] ?? '', 'Ukraine') !== false) {
$data['info'] = '';
}
// legacy warning/info keys
foreach (array('warning', 'info') as $type) {
if (empty($data[$type])) {
Expand Down

0 comments on commit b3922d6

Please sign in to comment.