From 87763f5e89e51e02bc051973141495fc0d7cc87a Mon Sep 17 00:00:00 2001 From: Silas Kenneth Date: Wed, 22 May 2024 17:01:34 +0300 Subject: [PATCH] Change snippet in README.md to jsonc for syntax highlighting --- .github/workflows/create-release.yml | 50 ---------------------------- README.md | 4 +-- 2 files changed, 2 insertions(+), 52 deletions(-) delete mode 100644 .github/workflows/create-release.yml diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml deleted file mode 100644 index 78e09b99e66..00000000000 --- a/.github/workflows/create-release.yml +++ /dev/null @@ -1,50 +0,0 @@ -name: "create release" - -on: - workflow_dispatch: - push: - branches: - - main - -defaults: - run: - shell: bash - -permissions: - contents: write - -jobs: - create-tag: - runs-on: ubuntu-latest - outputs: - SDK_VERSION: ${{ steps.tag-step.outputs.SDK_VERSION }} - steps: - - uses: actions/checkout@v4 - - - name: Get SDK version and set environment variable - run: | - SDK_VERSION=$(grep 'SDK_VERSION' src/GraphConstants.php | grep -oE '[0-9]+\.[0-9]+\.[0-9A-Za-z.\-]+') - echo "SDK_VERSION=$SDK_VERSION" >> $GITHUB_ENV - - - id: tag-step - name: Create and publish tag - run: | - echo "SDK_VERSION is:"$SDK_VERSION - git tag $SDK_VERSION && git push origin $SDK_VERSION - echo "SDK_VERSION=$SDK_VERSION" >> "$GITHUB_OUTPUT" - - create-release: - needs: create-tag - env: - SDK_VERSION: ${{ needs.create-tag.outputs.SDK_VERSION }} - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Create Release - uses: ncipollo/release-action@v1 - with: - generateReleaseNotes: true - prerelease: ${{ contains( env.SDK_VERSION, 'RC') }} - skipIfReleaseExists: true - tag: ${{ env.SDK_VERSION }} - name: "Release ${{ env.SDK_VERSION }}" diff --git a/README.md b/README.md index 6fdf4679db7..d0a9bcd131f 100644 --- a/README.md +++ b/README.md @@ -7,12 +7,12 @@ ## Install the SDK You can install the PHP SDK with Composer by editing your `composer.json` file: -```json +```jsonc { "require": { // x-release-please-start-version "microsoft/microsoft-graph": "^2.10.0" - // x-release-please-end--> + // x-release-please-end } } ```