tagging #13
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: | |
workflow_dispatch: | |
# Enable for automatic tagging | |
#schedule: | |
# - cron: '0 0 * * TUE' | |
# Ensure that only a single instance of the workflow is running at a time. | |
concurrency: | |
group: "tagging" | |
jobs: | |
tag: | |
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 |