Bump tj-actions/branch-names from 6 to 8 in /.github/workflows (#48) #40
This file contains 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: Bump version and push tag | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: "0" | |
- name: Bump version and push tag | |
id: bump_version_push_tag | |
uses: anothrNick/github-tag-action@1.52.0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
WITH_V: true # create version with 'v' character | |
DEFAULT_BUMP: patch # default is minor; to specify bumping major, minor or patch, include #major, #minor or #patch into commit message, respectively; if none specified, DEFAULT_BUMP applied | |
#try do dispatch event to other repositories | |
- name: Repository Dispatch | |
uses: guilouro/multiple-repositories-dispatch@v1.0.2 | |
with: | |
repo_token: ${{ secrets.XL_CI_GITHUB_ACTIONS_TOKEN }} | |
event_type: update-repo-dependency | |
client_payload: '{"ref": "${{ steps.bump_version_push_tag.outputs.tag }}"}' | |
#put repository names you want to send dispatch to | |
repositories: | | |
digital-ai/release-integration-template-go | |
digital-ai/release-k8s-integration | |
digital-ai/release-argocd-integration | |
digital-ai/release-deploy-integration |