bump-dependencies #236
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 Dependencies | |
on: | |
repository_dispatch: | |
types: [bump-dependencies] | |
jobs: | |
bump-dependencies: | |
if: startsWith(github.repository, 'spinnaker/') | |
runs-on: ubuntu-latest | |
steps: | |
# Halyard releases are separate from Spinnaker releases so we need to | |
# exclude Halyard from bump deps when targeting services release-* branches. | |
- name: decide bumpdep target repositories | |
id: bumpdep_targets | |
run: | | |
REPOS=clouddriver,echo,fiat,front50,gate,igor,keel,orca,rosco,swabbie | |
if [ "${{ github.event.client_payload.branch }}" == " origin/master" ]; then | |
echo "on master branch, include halyard in bumpdeps target list" | |
REPOS+=",halyard" | |
fi | |
echo REPOS=$(echo -e "${REPOS}") >> $GITHUB_OUTPUT | |
- uses: spinnaker/bumpdeps@master | |
with: | |
ref: ${{ github.event.client_payload.ref }} | |
baseBranch: ${{ github.event.client_payload.branch }} | |
key: korkVersion | |
repositories: ${{ steps.bumpdep_targets.outputs.REPOS }} | |
mavenRepositoryUrl: https://repo.maven.apache.org/maven2 | |
groupId: io.spinnaker.kork | |
artifactId: kork-bom | |
env: | |
GITHUB_OAUTH: ${{ secrets.SPINNAKER_GITHUB_TOKEN }} |