Skip to content

Commit

Permalink
ci: fix scheduled alpha release checkout etc
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuef committed Feb 26, 2024
1 parent 7d0e17c commit 4875a01
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/version_bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Version Bump

# prevent concurrent version bumps
concurrency:
group: "version-bump-${{ github.ref_name }}"
group: "version-bump-${{ github.event_name == 'schedule' && 'alpha' || github.ref_name }}"

on:
push:
Expand Down Expand Up @@ -53,11 +53,11 @@ jobs:
repository-name: ${{ github.repository }}
repository-owner: ${{ github.repository_owner }}
head-sha: ${{ env.sha }}
base-branch: ${{ github.ref_name }}
base-branch: ${{ github.event_name == 'schedule' && 'alpha' || github.ref_name }}
polling-interval: 60

- name: Fetch the latest code from the specified branch
run: git pull origin ${{ github.ref_name }}
run: git pull origin ${{ github.event_name == 'schedule' && 'alpha' || github.ref_name }}

- uses: actions-rs/toolchain@v1
with:
Expand All @@ -83,12 +83,12 @@ jobs:
rm release-plz-x86_64-unknown-linux-gnu.tar.gz
sudo mv release-plz /usr/local/bin
- shell: bash
run: ./resources/scripts/bump_version.sh ${{ github.ref_name }}
run: ./resources/scripts/bump_version.sh ${{ github.event_name == 'schedule' && 'alpha' || github.ref_name }}
- name: push version bump commit
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.VERSION_BUMP_COMMIT_PAT }}
branch: ${{ github.ref_name }}
branch: ${{ github.event_name == 'schedule' && 'alpha' || github.ref_name }}
tags: true
- name: post notification to slack on failure
if: ${{ failure() }}
Expand Down

0 comments on commit 4875a01

Please sign in to comment.