|
13 | 13 | uses: "buildkite/[email protected]" |
14 | 14 | with: |
15 | 15 | buildkite_api_access_token: ${{ secrets.TRIGGER_BK_BUILD_TOKEN }} |
16 | | - pipeline: "anza/agave-secondary" |
| 16 | + pipeline: "solana-labs/solana-secondary" |
17 | 17 | branch: "${{ github.ref_name }}" |
18 | 18 | build_env_vars: '{"TRIGGERED_BUILDKITE_TAG": "${{ github.ref_name }}"}' |
19 | 19 | commit: "HEAD" |
|
36 | 36 | draft: false, |
37 | 37 | prerelease: true |
38 | 38 | }) |
39 | | -
|
40 | | - version-bump: |
41 | | - runs-on: ubuntu-latest |
42 | | - steps: |
43 | | - - name: Checkout code |
44 | | - uses: actions/checkout@v4 |
45 | | - with: |
46 | | - fetch-depth: 0 |
47 | | - |
48 | | - - name: Parse Info |
49 | | - id: parse_info |
50 | | - run: | |
51 | | - # get the next version |
52 | | - version=${{ github.ref_name }} |
53 | | - major=$(echo $version | cut -d'.' -f1) |
54 | | - minor=$(echo $version | cut -d'.' -f2) |
55 | | - patch=$(echo $version | cut -d'.' -f3) |
56 | | - next_version=$major.$minor.$((patch+1)) |
57 | | - : "${next_version:?}" |
58 | | -
|
59 | | - # get the traget branch |
60 | | - target_branch=$major.$minor |
61 | | - : "${target_branch:?}" |
62 | | -
|
63 | | - echo "next_version=$next_version" | tee -a $GITHUB_OUTPUT |
64 | | - echo "target_branch=$target_branch" | tee -a $GITHUB_OUTPUT |
65 | | -
|
66 | | - - name: Create branch and make changes |
67 | | - run: | |
68 | | - next_version=${{ steps.parse_info.outputs.next_version }} |
69 | | -
|
70 | | - git checkout -b version-bump-$next_version |
71 | | - ./scripts/increment-cargo-version.sh patch |
72 | | -
|
73 | | - git config user.email "41898282+github-actions[bot]@users.noreply.github.com" |
74 | | - git config user.name "github-actions[bot]" |
75 | | - git commit -am "Bump version to $next_version" |
76 | | - git push origin version-bump-$next_version |
77 | | -
|
78 | | - - name: Create PR |
79 | | - uses: actions/github-script@v7 |
80 | | - with: |
81 | | - github-token: ${{ secrets.GITHUB_TOKEN }} |
82 | | - script: | |
83 | | - github.rest.pulls.create({ |
84 | | - owner: context.repo.owner, |
85 | | - repo: context.repo.repo, |
86 | | - title: 'Bump version to ${{ steps.parse_info.outputs.next_version }}', |
87 | | - head: 'version-bump-${{ steps.parse_info.outputs.next_version }}', |
88 | | - base: '${{ steps.parse_info.outputs.target_branch }}' |
89 | | - }) |
0 commit comments