feat: add tenant status check to scheduler executeJob (#2152) #948
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
| name: Tag Develop | |
| on: | |
| push: | |
| branches: [develop] | |
| permissions: | |
| contents: write | |
| jobs: | |
| tag: | |
| name: Create development tag | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Create lightweight tag | |
| uses: actions/github-script@v8 | |
| with: | |
| script: | | |
| const sha = context.sha.substring(0, 7); | |
| const now = new Date(); | |
| const d = now.toISOString().replace(/[-:T]/g, '').substring(0, 14); | |
| const tag = `dev-${d.substring(0, 8)}-${d.substring(8)}-${sha}`; | |
| await github.rest.git.createRef({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| ref: `refs/tags/${tag}`, | |
| sha: context.sha, | |
| }); | |
| core.info(`Created tag: ${tag}`); |