tagging #37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Generated file. DO NOT EDIT. | |
| name: tagging | |
| on: | |
| # Manual dispatch. | |
| workflow_dispatch: | |
| # No inputs are required for the manual dispatch. | |
| # Runs at 8:00 UTC on Tuesday, Wednesday, and Thursday. To enable automated | |
| # tagging for a repository, simply add it to the if block of the tag job. | |
| schedule: | |
| - cron: '0 8 * * TUE,WED,THU' | |
| # Ensure that only a single instance of the workflow is running at a time. | |
| concurrency: | |
| group: "tagging" | |
| jobs: | |
| tag: | |
| # Only run the tag job if the trigger is manual (workflow_dispatch) or | |
| # the repository has been approved for automated releases. | |
| # | |
| # To disable release for a repository, simply exclude it from the if | |
| # condition. | |
| if: >- | |
| github.event_name == 'workflow_dispatch' || | |
| github.repository == 'databricks/databricks-sdk-go' || | |
| github.repository == 'databricks/databricks-sdk-py' || | |
| github.repository == 'databricks/databricks-sdk-java' | |
| environment: "release-is" | |
| runs-on: | |
| group: databricks-deco-testing-runner-group | |
| labels: ubuntu-latest-deco | |
| steps: | |
| - name: Generate GitHub App Token | |
| id: generate-token | |
| uses: actions/create-github-app-token@v2 | |
| with: | |
| app-id: ${{ secrets.DECO_SDK_TAGGING_APP_ID }} | |
| private-key: ${{ secrets.DECO_SDK_TAGGING_PRIVATE_KEY }} | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ steps.generate-token.outputs.token }} | |
| #NOTE: email must be the GitHub App email or the commit will not be verified. | |
| - name: Set up Git configuration | |
| run: | | |
| git config user.name "Databricks SDK Release Bot" | |
| git config user.email "DECO-SDK-Tagging[bot]@users.noreply.github.com" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install PyGithub | |
| - name: Run script | |
| env: | |
| GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }} | |
| GITHUB_REPOSITORY: ${{ github.repository }} | |
| run: | | |
| python tagging.py |