diff --git a/.github/labeler.yml b/.github/labeler.yml deleted file mode 100644 index 0310cd714..000000000 --- a/.github/labeler.yml +++ /dev/null @@ -1,6 +0,0 @@ -no-auto-bump: - - changed-files: - - all-globs-to-all-files: - - '!**/*.rb' - - '!Gemfile' - - '!omnibus-software.gemspec' diff --git a/.github/workflows/no-auto-bump.yml b/.github/workflows/no-auto-bump.yml deleted file mode 100644 index 89eb5f9ef..000000000 --- a/.github/workflows/no-auto-bump.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Disable auto bump PR -on: - pull_request: - types: - - opened - - synchronize - -permissions: {} - -jobs: - labeler: - permissions: - contents: read - pull-requests: write - runs-on: ubuntu-latest - steps: - - uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0 - with: - sync-labels: true diff --git a/.github/workflows/open-datadog-agent-pr.yml b/.github/workflows/open-datadog-agent-pr.yml deleted file mode 100644 index 5cd59d89a..000000000 --- a/.github/workflows/open-datadog-agent-pr.yml +++ /dev/null @@ -1,87 +0,0 @@ -name: Open datadog-agent PR -run-name: -on: - pull_request: - types: - - closed - -permissions: {} - -jobs: - open_bump_pr: - if: github.event.pull_request.merged == true && !contains(github.event.pull_request.labels.*.name, 'no-auto-bump') && github.ref == 'refs/heads/master' - runs-on: ubuntu-latest - - steps: - - name: Create Token - uses: actions/create-github-app-token@67e27a7eb7db372a1c61a7f9bdab8699e9ee57f7 # v1.11.3 - id: app-token - with: - app-id: ${{ vars.DATADOG_APP_ID }} - private-key: ${{ secrets.DATADOG_APP_PRIVATE_KEY }} - repositories: datadog-agent - - - name: Clone datadog-agent repo - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - with: - repository: datadog/datadog-agent - persist-credentials: false - path: datadog-agent - token: ${{ steps.app-token.outputs.token }} - fetch-depth: 0 - - - name: Clone omnibus-software repo - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - with: - repository: datadog/omnibus-software - persist-credentials: false - path: omnibus-software - token: ${{ steps.app-token.outputs.token }} - ref: master - fetch-depth: 0 - - - name: Setup Python3 - uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0 - with: - python-version: "3.11.8" - cache: "pip" - - - name: Install python deps - working-directory: datadog-agent - run: | - pip3 install -r requirements.txt - pip3 install -r tasks/libs/requirements-github.txt - - - name: Get new commit sha1 - working-directory: omnibus-software - id: new_sha - run: | - git fetch - NEW_SHA=$(git rev-parse origin/master) - echo NEW_SHA=${NEW_SHA} >> "${GITHUB_OUTPUT}" - - - name: Update release.json - working-directory: datadog-agent - env: - OMNIBUS_SHA: ${{ github.event.pull_request.head.sha }} - run: | - inv -e release.set-release-json 'nightly::OMNIBUS_SOFTWARE_VERSION' ${{ steps.new_sha.outputs.NEW_SHA }} - inv -e release.set-release-json 'nightly-a7::OMNIBUS_SOFTWARE_VERSION' ${{ steps.new_sha.outputs.NEW_SHA }} - - - name: create datadog-agent PR - uses: peter-evans/create-pull-request@67ccf781d68cd99b580ae25a5c18a1cc84ffff1f # v7.0.6 - with: - token: ${{ steps.app-token.outputs.token }} - base: main - delete-branch: true - path: datadog-agent - add-paths: release.json - commit-message: 'omnibus: bump OMNIBUS_SOFTWARE_VERSION' - title: '[omnibus][automated] Bump OMNIBUS_SOFTWARE_VERSION' - branch: 'automated/omnibus-software/${{ github.event.number }}' - labels: 'team/agent-delivery,changelog/no-changelog,qa/no-code-change' - body: > - Automatically created by merging ${{ github.event.pull_request.html_url }} - - :warning: This PR is opened with the qa/no-code-change label by default. Please make sure this is appropriate -