.github/workflows/test.yml in datadog_api_client-1.11.0 vs .github/workflows/test.yml in datadog_api_client-2.0.0

- old
+ new

@@ -25,11 +25,11 @@ id: get_token uses: tibdex/github-app-token@v1 with: app_id: ${{ secrets.PIPELINE_GITHUB_APP_ID }} private_key: ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }} - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 ref: ${{ github.event.pull_request.head.sha }} token: ${{ steps.get_token.outputs.token }} - name: Install pre-commit @@ -78,11 +78,11 @@ runs-on: ${{ matrix.platform }} if: github.event.pull_request.draft == false && !contains(github.event.pull_request.labels.*.name, 'ci/skip') && !contains(github.event.pull_request.head.ref, 'datadog-api-spec/test/') env: BUNDLE_WITHOUT: docs steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Ruby ${{ matrix.ruby-version }} uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby-version }} bundler-cache: true @@ -94,11 +94,11 @@ examples: runs-on: ubuntu-latest if: github.event.pull_request.draft == false && !contains(github.event.pull_request.labels.*.name, 'ci/skip') && !contains(github.event.pull_request.head.ref, 'datadog-api-spec/test/') steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: "2.7" bundler-cache: true @@ -121,12 +121,10 @@ uses: tibdex/github-app-token@v1 with: app_id: ${{ secrets.PIPELINE_GITHUB_APP_ID }} private_key: ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }} repository: DataDog/datadog-api-spec - - name: Checkout code - uses: actions/checkout@v2 - - name: Post status check + - name: Post status 3heck uses: DataDog/github-actions/post-status-check@v1.0.0 with: github-token: ${{ steps.get_token.outputs.token }} repo: datadog-api-spec status: ${{ needs.test.result == 'success' && needs.examples.result == 'success' && 'success' || 'failure' }}