diff --git a/device-detection/.github/workflows/example-assets-update.yml b/.github/workflows/example-assets-update.yml similarity index 73% rename from device-detection/.github/workflows/example-assets-update.yml rename to .github/workflows/example-assets-update.yml index dfbd3e5d..7c7b1851 100644 --- a/device-detection/.github/workflows/example-assets-update.yml +++ b/.github/workflows/example-assets-update.yml @@ -3,12 +3,14 @@ name: Example Assets Update # Refreshes the shared web-example CSS/JS (examples-main) committed in this repo # from the latest examples-assets release, via the common-ci reusable workflow. # The assets change rarely, so this runs weekly and only opens a PR if they -# changed. common-ci is not a submodule; it is referenced as a reusable workflow. +# changed. It calls common-ci as a reusable workflow, not a submodule. on: workflow_dispatch: + # Mondays at 03:45 UTC, so it starts apart from the other repositories' + # example asset updates. schedule: - - cron: '0 3 * * 1' + - cron: '45 3 * * 1' jobs: Example_Assets_Update: diff --git a/.github/workflows/nightly-pipeline.yml b/.github/workflows/nightly-pipeline.yml index 7f434943..47c30d9b 100644 --- a/.github/workflows/nightly-pipeline.yml +++ b/.github/workflows/nightly-pipeline.yml @@ -35,13 +35,10 @@ jobs: secrets: token: ${{ secrets.ACCESS_TOKEN }} DeviceDetection: ${{ secrets.DEVICE_DETECTION_KEY }} - DeviceDetectionUrl: ${{ secrets.DEVICE_DETECTION_URL }} - CsvUrl: ${{ secrets.CSV_URL }} IpIntelligence: ${{ secrets.IP_INTELLIGENCE_KEY }} IpIntelligenceUrl: ${{ secrets.IPI_DATA_FILE_URL }} TestResourceKey: ${{ secrets._51DEGREES_RESOURCE_KEY_BESPOKE }} PypiToken: ${{ secrets.PYPI_TOKEN }} - TestPypiToken: ${{ secrets.TEST_PYPI_TOKEN }} SubmoduleUpdate: name: Nightly Submodule Update @@ -71,8 +68,6 @@ jobs: secrets: token: ${{ secrets.ACCESS_TOKEN }} DeviceDetection: ${{ secrets.DEVICE_DETECTION_KEY }} - DeviceDetectionUrl: ${{ secrets.DEVICE_DETECTION_URL }} - CsvUrl: ${{ secrets.CSV_URL }} IpIntelligence: ${{ secrets.IP_INTELLIGENCE_KEY }} IpIntelligenceUrl: ${{ secrets.IPI_DATA_FILE_URL }} TestResourceKey: ${{ secrets._51DEGREES_RESOURCE_KEY_BESPOKE }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c02871b1..b75b3038 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -30,10 +30,7 @@ jobs: secrets: token: ${{ secrets.ACCESS_TOKEN }} DeviceDetection: ${{ secrets.DEVICE_DETECTION_KEY }} - DeviceDetectionUrl: ${{ secrets.DEVICE_DETECTION_URL }} - CsvUrl: ${{ secrets.CSV_URL }} IpIntelligence: ${{ secrets.IP_INTELLIGENCE_KEY }} IpIntelligenceUrl: ${{ secrets.IPI_DATA_FILE_URL }} TestResourceKey: ${{ secrets._51DEGREES_RESOURCE_KEY_BESPOKE }} PypiToken: ${{ secrets.PYPI_TOKEN }} - TestPypiToken: ${{ secrets.TEST_PYPI_TOKEN }} diff --git a/.github/workflows/pull-requests.yml b/.github/workflows/pull-requests.yml index 10b95bd4..e154435f 100644 --- a/.github/workflows/pull-requests.yml +++ b/.github/workflows/pull-requests.yml @@ -38,8 +38,6 @@ jobs: secrets: token: ${{ secrets.ACCESS_TOKEN }} DeviceDetection: ${{ secrets.DEVICE_DETECTION_KEY }} - DeviceDetectionUrl: ${{ secrets.DEVICE_DETECTION_URL }} - CsvUrl: ${{ secrets.CSV_URL }} IpIntelligence: ${{ secrets.IP_INTELLIGENCE_KEY }} IpIntelligenceUrl: ${{ secrets.IPI_DATA_FILE_URL }} TestResourceKey: ${{ secrets._51DEGREES_RESOURCE_KEY_BESPOKE }} diff --git a/.github/workflows/release-pull-request.yml b/.github/workflows/release-pull-request.yml index 8af10442..6faa5356 100644 --- a/.github/workflows/release-pull-request.yml +++ b/.github/workflows/release-pull-request.yml @@ -25,8 +25,6 @@ jobs: secrets: token: ${{ secrets.ACCESS_TOKEN }} DeviceDetection: ${{ secrets.DEVICE_DETECTION_KEY }} - DeviceDetectionUrl: ${{ secrets.DEVICE_DETECTION_URL }} - CsvUrl: ${{ secrets.CSV_URL }} IpIntelligence: ${{ secrets.IP_INTELLIGENCE_KEY }} IpIntelligenceUrl: ${{ secrets.IPI_DATA_FILE_URL }} TestResourceKey: ${{ secrets._51DEGREES_RESOURCE_KEY_BESPOKE }} diff --git a/ci/fetch-assets.ps1 b/ci/fetch-assets.ps1 index 7a37794a..62209ec2 100644 --- a/ci/fetch-assets.ps1 +++ b/ci/fetch-assets.ps1 @@ -5,8 +5,6 @@ param ( # common-ci checkout, which is where both callers run it from. [string]$RepoName = (Split-Path -Leaf (Split-Path -Parent $PSScriptRoot)), [string]$DeviceDetection, - [string]$DeviceDetectionUrl, - [string]$CsvUrl, [string]$IpIntelligence, [string]$IpIntelligenceUrl, # The branch a pull request merges into, which its changes are measured diff --git a/device-detection/.github/workflows/monthly-copyright-update.yml b/device-detection/.github/workflows/monthly-copyright-update.yml deleted file mode 100644 index 8a8536f6..00000000 --- a/device-detection/.github/workflows/monthly-copyright-update.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Monthly Copyright Update - -on: - workflow_dispatch: - inputs: - dryrun: - default: false - type: boolean - description: Dry Run - schedule: - # The copyright year only changes once a year, so this runs on 1 January. - - cron: '0 0 1 1 *' - -jobs: - Monthly_Copyright_Update: - uses: 51Degrees/common-ci/.github/workflows/monthly-copyright-update.yml@main - with: - repo-name: ${{ github.event.repository.name }} - org-name: ${{ github.event.repository.owner.login }} - dryrun: ${{ inputs.dryrun || false }} - secrets: - token: ${{ secrets.ACCESS_TOKEN }} diff --git a/device-detection/.github/workflows/nightly-pipeline.yml b/device-detection/.github/workflows/nightly-pipeline.yml deleted file mode 100644 index dba1de47..00000000 --- a/device-detection/.github/workflows/nightly-pipeline.yml +++ /dev/null @@ -1,57 +0,0 @@ -name: Nightly Pipeline - -on: - workflow_dispatch: - inputs: - dryrun: - type: boolean - default: false - schedule: - - cron: '0 2 * * *' - -jobs: - SubmoduleUpdate: - name: Nightly Submodule Update - uses: 51Degrees/common-ci/.github/workflows/nightly-submodule-update.yml@main - with: - repo-name: ${{ github.event.repository.name }} - org-name: ${{ github.event.repository.owner.login }} - dryrun: ${{ inputs.dryrun || false }} - secrets: - token: ${{ secrets.ACCESS_TOKEN }} - - PullRequests: - if: ${{ !cancelled() }} - needs: SubmoduleUpdate - name: Nightly Pull Requests - uses: 51Degrees/common-ci/.github/workflows/nightly-pull-requests.yml@main - with: - repo-name: ${{ github.event.repository.name }} - org-name: ${{ github.event.repository.owner.login }} - dryrun: ${{ inputs.dryrun || false }} - cache-assets: true - secrets: - token: ${{ secrets.ACCESS_TOKEN }} - DeviceDetection: ${{ secrets.DEVICE_DETECTION_KEY }} - TestResourceKey: ${{ secrets._51DEGREES_RESOURCE_KEY_BESPOKE }} - DeviceDetectionUrl: ${{ secrets.DEVICE_DETECTION_URL }} - CsvUrl: ${{ secrets.CSV_URL }} - - Publish: - if: ${{ !cancelled() }} - needs: PullRequests - name: Nightly Publish - uses: 51Degrees/common-ci/.github/workflows/nightly-publish.yml@main - with: - repo-name: ${{ github.event.repository.name }} - org-name: ${{ github.event.repository.owner.login }} - dryrun: ${{ inputs.dryrun || false }} - cache-assets: true - secrets: - token: ${{ secrets.ACCESS_TOKEN }} - DeviceDetection: ${{ secrets.DEVICE_DETECTION_KEY }} - TestResourceKey: ${{ secrets._51DEGREES_RESOURCE_KEY_BESPOKE }} - DeviceDetectionUrl: ${{ secrets.DEVICE_DETECTION_URL }} - CsvUrl: ${{ secrets.CSV_URL }} - PypiToken: ${{ secrets.PYPI_TOKEN }} - TestPypiToken: ${{ secrets.TEST_PYPI_TOKEN }} diff --git a/device-detection/.github/workflows/publish.yml b/device-detection/.github/workflows/publish.yml deleted file mode 100644 index cf1eb28a..00000000 --- a/device-detection/.github/workflows/publish.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Publish - -on: - workflow_dispatch: - inputs: - dryrun: - type: boolean - default: false - -jobs: - Publish: - name: Publish - uses: 51Degrees/common-ci/.github/workflows/nightly-publish.yml@main - with: - repo-name: ${{ github.event.repository.name }} - org-name: ${{ github.event.repository.owner.login }} - dryrun: ${{ inputs.dryrun || false }} - cache-assets: true - secrets: - token: ${{ secrets.ACCESS_TOKEN }} - DeviceDetection: ${{ secrets.DEVICE_DETECTION_KEY }} - TestResourceKey: ${{ secrets._51DEGREES_RESOURCE_KEY_BESPOKE }} - DeviceDetectionUrl: ${{ secrets.DEVICE_DETECTION_URL }} - CsvUrl: ${{ secrets.CSV_URL }} - PypiToken: ${{ secrets.PYPI_TOKEN }} - TestPypiToken: ${{ secrets.TEST_PYPI_TOKEN }} diff --git a/device-detection/.github/workflows/pull-requests.yml b/device-detection/.github/workflows/pull-requests.yml deleted file mode 100644 index 434e7918..00000000 --- a/device-detection/.github/workflows/pull-requests.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Pull Requests - -on: - workflow_dispatch: - inputs: - dryrun: - type: boolean - default: false - -jobs: - PullRequests: - name: Pull Requests - uses: 51Degrees/common-ci/.github/workflows/nightly-pull-requests.yml@main - with: - repo-name: ${{ github.event.repository.name }} - org-name: ${{ github.event.repository.owner.login }} - dryrun: ${{ inputs.dryrun || false }} - cache-assets: true - secrets: - token: ${{ secrets.ACCESS_TOKEN }} - DeviceDetection: ${{ secrets.DEVICE_DETECTION_KEY }} - TestResourceKey: ${{ secrets._51DEGREES_RESOURCE_KEY_BESPOKE }} - DeviceDetectionUrl: ${{ secrets.DEVICE_DETECTION_URL }} - CsvUrl: ${{ secrets.CSV_URL }} diff --git a/device-detection/.github/workflows/submodule-update.yml b/device-detection/.github/workflows/submodule-update.yml deleted file mode 100644 index 76c78c0f..00000000 --- a/device-detection/.github/workflows/submodule-update.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Submodule Update - -on: - workflow_dispatch: - inputs: - dryrun: - type: boolean - default: false - -jobs: - SubmoduleUpdate: - name: Submodule Update - uses: 51Degrees/common-ci/.github/workflows/nightly-submodule-update.yml@main - with: - repo-name: ${{ github.event.repository.name }} - org-name: ${{ github.event.repository.owner.login }} - dryrun: ${{ inputs.dryrun || false }} - secrets: - token: ${{ secrets.ACCESS_TOKEN }} diff --git a/device-detection/.github/workflows/utm-link-lint.yml b/device-detection/.github/workflows/utm-link-lint.yml deleted file mode 100644 index 2edc6722..00000000 --- a/device-detection/.github/workflows/utm-link-lint.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: UTM link lint - -on: - pull_request: - push: - branches: - - main - workflow_dispatch: - -jobs: - utm-link-lint: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Checkout common-ci - uses: actions/checkout@v4 - with: - repository: 51Degrees/common-ci - path: utm-lint-common-ci - - - name: Lint 51degrees.com links - shell: pwsh - run: ./utm-lint-common-ci/scripts/utm-lint.ps1 -RepoRoot . diff --git a/device-detection/ci/README.md b/device-detection/ci/README.md index 76a328d6..570aa052 100644 --- a/device-detection/ci/README.md +++ b/device-detection/ci/README.md @@ -10,7 +10,3 @@ The following secrets are required: * Example: `V3RYL0NGR4ND0M57R1NG` * `PYPI_TOKEN` - [PyPI token](https://pypi.org/help/#apitoken) for publishing packages * Example: `pypi-sUp3r-l0nG_r4nd0m-s7r1Ng` - -The following secrets are optional: -* `DEVICE_DETECTION_URL` - URL for downloading the enterprise TAC hashes file - * Default: `https://distributor.51degrees.com/api/v2/download?LicenseKeys=DEVICE_DETECTION_KEY&Type=HashV41&Download=True&Product=V4TAC` diff --git a/device-detection/ci/fetch-assets.ps1 b/device-detection/ci/fetch-assets.ps1 index a2501740..78b11657 100644 --- a/device-detection/ci/fetch-assets.ps1 +++ b/device-detection/ci/fetch-assets.ps1 @@ -1,7 +1,5 @@ param ( - [string]$DeviceDetection, - [string]$DeviceDetectionUrl, - [string]$CsvUrl + [string]$DeviceDetection ) $ErrorActionPreference = 'Stop' @@ -21,7 +19,7 @@ if ($DeviceDetection) { Write-Host "::warning file=$($MyInvocation.ScriptName),line=$($MyInvocation.ScriptLineNumber),title=No License Key::A device detection license was not provided, so On-Premise Data file and 51Degrees.csv will not be downloaded." } -./steps/fetch-assets.ps1 -DeviceDetection:$DeviceDetection -DeviceDetectionUrl:$DeviceDetectionUrl -CsvUrl:$CsvUrl -Assets $assets +./steps/fetch-assets.ps1 -DeviceDetection:$DeviceDetection -Assets $assets foreach ($asset in $assets) { switch -Exact -CaseSensitive ($asset) { 'TAC-HashV41.hash' {New-Item -ItemType SymbolicLink -Force -Target "$PWD/assets/$_" -Path "$deviceDetectionData/Enterprise-HashV41.hash"} diff --git a/ip-intelligence/.github/workflows/monthly-copyright-update.yml b/ip-intelligence/.github/workflows/monthly-copyright-update.yml deleted file mode 100644 index 8a8536f6..00000000 --- a/ip-intelligence/.github/workflows/monthly-copyright-update.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Monthly Copyright Update - -on: - workflow_dispatch: - inputs: - dryrun: - default: false - type: boolean - description: Dry Run - schedule: - # The copyright year only changes once a year, so this runs on 1 January. - - cron: '0 0 1 1 *' - -jobs: - Monthly_Copyright_Update: - uses: 51Degrees/common-ci/.github/workflows/monthly-copyright-update.yml@main - with: - repo-name: ${{ github.event.repository.name }} - org-name: ${{ github.event.repository.owner.login }} - dryrun: ${{ inputs.dryrun || false }} - secrets: - token: ${{ secrets.ACCESS_TOKEN }} diff --git a/ip-intelligence/.github/workflows/nightly-pipeline.yml b/ip-intelligence/.github/workflows/nightly-pipeline.yml deleted file mode 100644 index dc082c19..00000000 --- a/ip-intelligence/.github/workflows/nightly-pipeline.yml +++ /dev/null @@ -1,55 +0,0 @@ -name: Nightly Pipeline - -on: - workflow_dispatch: - inputs: - dryrun: - type: boolean - default: false - schedule: - - cron: '0 2 * * *' - -jobs: - SubmoduleUpdate: - name: Nightly Submodule Update - uses: 51Degrees/common-ci/.github/workflows/nightly-submodule-update.yml@main - with: - repo-name: ${{ github.event.repository.name }} - org-name: ${{ github.event.repository.owner.login }} - dryrun: ${{ inputs.dryrun || false }} - secrets: - token: ${{ secrets.ACCESS_TOKEN }} - - PullRequests: - if: ${{ !cancelled() }} - needs: SubmoduleUpdate - name: Nightly Pull Requests - uses: 51Degrees/common-ci/.github/workflows/nightly-pull-requests.yml@main - with: - repo-name: ${{ github.event.repository.name }} - org-name: ${{ github.event.repository.owner.login }} - dryrun: ${{ inputs.dryrun || false }} - cache-assets: true - secrets: - token: ${{ secrets.ACCESS_TOKEN }} - IpIntelligence: ${{ secrets.IP_INTELLIGENCE_KEY }} - IpIntelligenceUrl: ${{ secrets.IPI_DATA_FILE_URL }} - TestResourceKey: ${{ secrets._51DEGREES_RESOURCE_KEY_BESPOKE }} - - Publish: - if: ${{ !cancelled() }} - needs: PullRequests - name: Nightly Publish - uses: 51Degrees/common-ci/.github/workflows/nightly-publish.yml@main - with: - repo-name: ${{ github.event.repository.name }} - org-name: ${{ github.event.repository.owner.login }} - dryrun: ${{ inputs.dryrun || false }} - cache-assets: true - secrets: - token: ${{ secrets.ACCESS_TOKEN }} - IpIntelligence: ${{ secrets.IP_INTELLIGENCE_KEY }} - IpIntelligenceUrl: ${{ secrets.IPI_DATA_FILE_URL }} - TestResourceKey: ${{ secrets._51DEGREES_RESOURCE_KEY_BESPOKE }} - PypiToken: ${{ secrets.PYPI_TOKEN }} - TestPypiToken: ${{ secrets.TEST_PYPI_TOKEN }} diff --git a/ip-intelligence/.github/workflows/publish.yml b/ip-intelligence/.github/workflows/publish.yml deleted file mode 100644 index 5d27054a..00000000 --- a/ip-intelligence/.github/workflows/publish.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Publish - -on: - workflow_dispatch: - inputs: - dryrun: - type: boolean - default: false - -jobs: - Publish: - name: Publish - uses: 51Degrees/common-ci/.github/workflows/nightly-publish.yml@main - with: - repo-name: ${{ github.event.repository.name }} - org-name: ${{ github.event.repository.owner.login }} - dryrun: ${{ inputs.dryrun || false }} - cache-assets: true - secrets: - token: ${{ secrets.ACCESS_TOKEN }} - IpIntelligence: ${{ secrets.IP_INTELLIGENCE_KEY }} - IpIntelligenceUrl: ${{ secrets.IPI_DATA_FILE_URL }} - TestResourceKey: ${{ secrets._51DEGREES_RESOURCE_KEY_BESPOKE }} - PypiToken: ${{ secrets.PYPI_TOKEN }} - TestPypiToken: ${{ secrets.TEST_PYPI_TOKEN }} diff --git a/ip-intelligence/.github/workflows/pull-requests.yml b/ip-intelligence/.github/workflows/pull-requests.yml deleted file mode 100644 index 213335e0..00000000 --- a/ip-intelligence/.github/workflows/pull-requests.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Pull Requests - -on: - workflow_dispatch: - inputs: - dryrun: - type: boolean - default: false - -jobs: - PullRequests: - name: Pull Requests - uses: 51Degrees/common-ci/.github/workflows/nightly-pull-requests.yml@main - with: - repo-name: ${{ github.event.repository.name }} - org-name: ${{ github.event.repository.owner.login }} - dryrun: ${{ inputs.dryrun || false }} - cache-assets: true - secrets: - token: ${{ secrets.ACCESS_TOKEN }} - IpIntelligence: ${{ secrets.IP_INTELLIGENCE_KEY }} - IpIntelligenceUrl: ${{ secrets.IPI_DATA_FILE_URL }} - TestResourceKey: ${{ secrets._51DEGREES_RESOURCE_KEY_BESPOKE }} diff --git a/ip-intelligence/.github/workflows/submodule-update.yml b/ip-intelligence/.github/workflows/submodule-update.yml deleted file mode 100644 index 76c78c0f..00000000 --- a/ip-intelligence/.github/workflows/submodule-update.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Submodule Update - -on: - workflow_dispatch: - inputs: - dryrun: - type: boolean - default: false - -jobs: - SubmoduleUpdate: - name: Submodule Update - uses: 51Degrees/common-ci/.github/workflows/nightly-submodule-update.yml@main - with: - repo-name: ${{ github.event.repository.name }} - org-name: ${{ github.event.repository.owner.login }} - dryrun: ${{ inputs.dryrun || false }} - secrets: - token: ${{ secrets.ACCESS_TOKEN }} diff --git a/ip-intelligence/ci/README.md b/ip-intelligence/ci/README.md index 7f4b5fa1..1bf82e1c 100644 --- a/ip-intelligence/ci/README.md +++ b/ip-intelligence/ci/README.md @@ -15,4 +15,3 @@ The following secrets are optional: * `IPI_DATA_FILE_URL` - URL for downloading the Enterprise IP Intelligence data file. When it is set, the tests use that file instead of the Lite file, which is downloaded without a key. * `IP_INTELLIGENCE_KEY` - [licence key](https://51degrees.com/pricing?utm_source=github&utm_medium=readme&utm_campaign=51degrees-python&utm_content=ci-readme.md&utm_term=api-specific-ci-cd-approach) passed with the Enterprise data file download. * Example: `V3RYL0NGR4ND0M57R1NG` -* `TEST_PYPI_TOKEN` - [TestPyPI token](https://test.pypi.org/help/#apitoken) used by the publish workflow. diff --git a/location/.github/workflows/monthly-copyright-update.yml b/location/.github/workflows/monthly-copyright-update.yml deleted file mode 100644 index 8a8536f6..00000000 --- a/location/.github/workflows/monthly-copyright-update.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Monthly Copyright Update - -on: - workflow_dispatch: - inputs: - dryrun: - default: false - type: boolean - description: Dry Run - schedule: - # The copyright year only changes once a year, so this runs on 1 January. - - cron: '0 0 1 1 *' - -jobs: - Monthly_Copyright_Update: - uses: 51Degrees/common-ci/.github/workflows/monthly-copyright-update.yml@main - with: - repo-name: ${{ github.event.repository.name }} - org-name: ${{ github.event.repository.owner.login }} - dryrun: ${{ inputs.dryrun || false }} - secrets: - token: ${{ secrets.ACCESS_TOKEN }} diff --git a/location/.github/workflows/nightly-pipeline.yml b/location/.github/workflows/nightly-pipeline.yml deleted file mode 100644 index 36dfc5b1..00000000 --- a/location/.github/workflows/nightly-pipeline.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Nightly Pipeline - -on: - workflow_dispatch: - inputs: - dryrun: - type: boolean - default: false - schedule: - - cron: '0 1 * * *' - -jobs: - PullRequests: - name: Nightly Pull Requests - uses: 51Degrees/common-ci/.github/workflows/nightly-pull-requests.yml@main - with: - repo-name: ${{ github.event.repository.name }} - org-name: ${{ github.event.repository.owner.login }} - dryrun: ${{ inputs.dryrun || false }} - secrets: - token: ${{ secrets.ACCESS_TOKEN }} - TestResourceKey: ${{ secrets._51DEGREES_RESOURCE_KEY_BESPOKE }} - - Publish: - if: ${{ !cancelled() }} - needs: PullRequests - name: Nightly Publish - uses: 51Degrees/common-ci/.github/workflows/nightly-publish.yml@main - with: - repo-name: ${{ github.event.repository.name }} - org-name: ${{ github.event.repository.owner.login }} - dryrun: ${{ inputs.dryrun || false }} - secrets: - token: ${{ secrets.ACCESS_TOKEN }} - TestResourceKey: ${{ secrets._51DEGREES_RESOURCE_KEY_BESPOKE }} - PypiToken: ${{ secrets.PYPI_TOKEN }} - diff --git a/location/.github/workflows/nightly-prs-to-main.yml b/location/.github/workflows/nightly-prs-to-main.yml deleted file mode 100644 index 0a65b3e6..00000000 --- a/location/.github/workflows/nightly-prs-to-main.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Pull Requests - -on: - workflow_dispatch: - inputs: - dryrun: - type: boolean - default: false - -jobs: - PullRequests: - name: Pull Requests - uses: 51Degrees/common-ci/.github/workflows/nightly-pull-requests.yml@main - with: - repo-name: ${{ github.event.repository.name }} - org-name: ${{ github.event.repository.owner.login }} - dryrun: ${{ inputs.dryrun || false }} - secrets: - token: ${{ secrets.ACCESS_TOKEN }} - TestResourceKey: ${{ secrets._51DEGREES_RESOURCE_KEY_BESPOKE }} diff --git a/location/.github/workflows/nightly-publish-main.yml b/location/.github/workflows/nightly-publish-main.yml deleted file mode 100644 index adfa9188..00000000 --- a/location/.github/workflows/nightly-publish-main.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Publish - -on: - workflow_dispatch: - inputs: - dryrun: - type: boolean - default: false - -jobs: - Publish: - name: Publish - uses: 51Degrees/common-ci/.github/workflows/nightly-publish.yml@main - with: - repo-name: ${{ github.event.repository.name }} - org-name: ${{ github.event.repository.owner.login }} - dryrun: ${{ inputs.dryrun || false }} - secrets: - token: ${{ secrets.ACCESS_TOKEN }} - TestResourceKey: ${{ secrets._51DEGREES_RESOURCE_KEY_BESPOKE }} - PypiToken: ${{ secrets.PYPI_TOKEN }} diff --git a/location/.github/workflows/utm-link-lint.yml b/location/.github/workflows/utm-link-lint.yml deleted file mode 100644 index 2edc6722..00000000 --- a/location/.github/workflows/utm-link-lint.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: UTM link lint - -on: - pull_request: - push: - branches: - - main - workflow_dispatch: - -jobs: - utm-link-lint: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Checkout common-ci - uses: actions/checkout@v4 - with: - repository: 51Degrees/common-ci - path: utm-lint-common-ci - - - name: Lint 51degrees.com links - shell: pwsh - run: ./utm-lint-common-ci/scripts/utm-lint.ps1 -RepoRoot . diff --git a/pipeline/.github/workflows/examples.yml b/pipeline/.github/workflows/examples.yml deleted file mode 100644 index 2b0fcc41..00000000 --- a/pipeline/.github/workflows/examples.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: Examples - -# Runs the tests of the examples in fiftyone_pipeline_cloudrequestengine/examples -# on demand. -# -# The examples are tested by common-ci on every Python version and operating -# system in ci/options.json, in the pull request and nightly workflows, because -# ci/run-integration-tests.ps1 lists them. This workflow is only for running -# them alone, on one Linux runner, without waiting for a full pipeline. -# -# The tests that call the cloud service read _51DEGREES_RESOURCE_KEY. It is -# set from the organisation's bespoke resource key, because that key carries -# the device detection, IP intelligence and translated country name -# properties the examples show. -# -# The secret is named rather than passed as toJSON(secrets), for the reason -# given in cloud-51did.yml. - -on: - workflow_dispatch: - -jobs: - examples: - name: Examples - runs-on: ubuntu-latest - defaults: - run: - working-directory: fiftyone_pipeline_cloudrequestengine/examples - steps: - - uses: actions/checkout@v4 - with: - # The client-side script is built from the JavaScript templates, - # which are a submodule of the core package. - submodules: recursive - - uses: actions/setup-python@v5 - with: - python-version: '3.11' - - name: Install tox - run: python -m pip install --upgrade pip tox - - name: Test the examples - env: - _51DEGREES_RESOURCE_KEY: ${{ secrets._51DEGREES_RESOURCE_KEY_BESPOKE }} - run: python -m tox -e py -- -v -rs diff --git a/pipeline/.github/workflows/monthly-copyright-update.yml b/pipeline/.github/workflows/monthly-copyright-update.yml deleted file mode 100644 index 8a8536f6..00000000 --- a/pipeline/.github/workflows/monthly-copyright-update.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Monthly Copyright Update - -on: - workflow_dispatch: - inputs: - dryrun: - default: false - type: boolean - description: Dry Run - schedule: - # The copyright year only changes once a year, so this runs on 1 January. - - cron: '0 0 1 1 *' - -jobs: - Monthly_Copyright_Update: - uses: 51Degrees/common-ci/.github/workflows/monthly-copyright-update.yml@main - with: - repo-name: ${{ github.event.repository.name }} - org-name: ${{ github.event.repository.owner.login }} - dryrun: ${{ inputs.dryrun || false }} - secrets: - token: ${{ secrets.ACCESS_TOKEN }} diff --git a/pipeline/.github/workflows/nightly-pipeline.yml b/pipeline/.github/workflows/nightly-pipeline.yml deleted file mode 100644 index 6bf37dc3..00000000 --- a/pipeline/.github/workflows/nightly-pipeline.yml +++ /dev/null @@ -1,49 +0,0 @@ -name: Nightly Pipeline - -on: - workflow_dispatch: - inputs: - dryrun: - type: boolean - default: false - schedule: - - cron: '0 1 * * *' - -jobs: - SubmoduleUpdate: - name: Nightly Submodule Update - uses: 51Degrees/common-ci/.github/workflows/nightly-submodule-update.yml@main - with: - repo-name: ${{ github.event.repository.name }} - org-name: ${{ github.event.repository.owner.login }} - dryrun: ${{ inputs.dryrun || false }} - secrets: - token: ${{ secrets.ACCESS_TOKEN }} - - PullRequests: - if: ${{ !cancelled() }} - needs: SubmoduleUpdate - name: Nightly Pull Requests - uses: 51Degrees/common-ci/.github/workflows/nightly-pull-requests.yml@main - with: - repo-name: ${{ github.event.repository.name }} - org-name: ${{ github.event.repository.owner.login }} - dryrun: ${{ inputs.dryrun || false }} - secrets: - token: ${{ secrets.ACCESS_TOKEN }} - TestResourceKey: ${{ secrets._51DEGREES_RESOURCE_KEY_BESPOKE }} - - Publish: - if: ${{ !cancelled() }} - needs: PullRequests - name: Nightly Publish - uses: 51Degrees/common-ci/.github/workflows/nightly-publish.yml@main - with: - repo-name: ${{ github.event.repository.name }} - org-name: ${{ github.event.repository.owner.login }} - dryrun: ${{ inputs.dryrun || false }} - secrets: - token: ${{ secrets.ACCESS_TOKEN }} - TestResourceKey: ${{ secrets._51DEGREES_RESOURCE_KEY_BESPOKE }} - PypiToken: ${{ secrets.PYPI_TOKEN }} - diff --git a/pipeline/.github/workflows/publish.yml b/pipeline/.github/workflows/publish.yml deleted file mode 100644 index adfa9188..00000000 --- a/pipeline/.github/workflows/publish.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Publish - -on: - workflow_dispatch: - inputs: - dryrun: - type: boolean - default: false - -jobs: - Publish: - name: Publish - uses: 51Degrees/common-ci/.github/workflows/nightly-publish.yml@main - with: - repo-name: ${{ github.event.repository.name }} - org-name: ${{ github.event.repository.owner.login }} - dryrun: ${{ inputs.dryrun || false }} - secrets: - token: ${{ secrets.ACCESS_TOKEN }} - TestResourceKey: ${{ secrets._51DEGREES_RESOURCE_KEY_BESPOKE }} - PypiToken: ${{ secrets.PYPI_TOKEN }} diff --git a/pipeline/.github/workflows/pull-requests.yml b/pipeline/.github/workflows/pull-requests.yml deleted file mode 100644 index 0a65b3e6..00000000 --- a/pipeline/.github/workflows/pull-requests.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Pull Requests - -on: - workflow_dispatch: - inputs: - dryrun: - type: boolean - default: false - -jobs: - PullRequests: - name: Pull Requests - uses: 51Degrees/common-ci/.github/workflows/nightly-pull-requests.yml@main - with: - repo-name: ${{ github.event.repository.name }} - org-name: ${{ github.event.repository.owner.login }} - dryrun: ${{ inputs.dryrun || false }} - secrets: - token: ${{ secrets.ACCESS_TOKEN }} - TestResourceKey: ${{ secrets._51DEGREES_RESOURCE_KEY_BESPOKE }} diff --git a/pipeline/.github/workflows/submodule-update.yml b/pipeline/.github/workflows/submodule-update.yml deleted file mode 100644 index 76c78c0f..00000000 --- a/pipeline/.github/workflows/submodule-update.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Submodule Update - -on: - workflow_dispatch: - inputs: - dryrun: - type: boolean - default: false - -jobs: - SubmoduleUpdate: - name: Submodule Update - uses: 51Degrees/common-ci/.github/workflows/nightly-submodule-update.yml@main - with: - repo-name: ${{ github.event.repository.name }} - org-name: ${{ github.event.repository.owner.login }} - dryrun: ${{ inputs.dryrun || false }} - secrets: - token: ${{ secrets.ACCESS_TOKEN }} diff --git a/pipeline/.github/workflows/utm-link-lint.yml b/pipeline/.github/workflows/utm-link-lint.yml deleted file mode 100644 index 2edc6722..00000000 --- a/pipeline/.github/workflows/utm-link-lint.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: UTM link lint - -on: - pull_request: - push: - branches: - - main - workflow_dispatch: - -jobs: - utm-link-lint: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Checkout common-ci - uses: actions/checkout@v4 - with: - repository: 51Degrees/common-ci - path: utm-lint-common-ci - - - name: Lint 51degrees.com links - shell: pwsh - run: ./utm-lint-common-ci/scripts/utm-lint.ps1 -RepoRoot .