forked from bazel-contrib/setup-bazel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from useblacksmith/add-wflw
add workflow to bump bazel action
- Loading branch information
Showing
7 changed files
with
182 additions
and
208,506 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Bump Cache Version | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
cache_version: | ||
description: 'New @useblacksmith/cache version' | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
bump-cache-version: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Update package.json | ||
run: | | ||
sed -i 's/"@actions\/cache": "npm:@useblacksmith\/cache@[^"]*"/"@actions\/cache": "npm:@useblacksmith\/cache@${{ github.event.inputs.cache_version }}"/' package.json | ||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Build | ||
run: npm run build | ||
|
||
# - name: Commit and push changes | ||
# run: | | ||
# git config user.name github-actions | ||
# git config user.email [email protected] | ||
# git add . | ||
# git commit -m "Bump @actions/cache version to ${{ github.event.inputs.cache_version }}" | ||
# git push origin main | ||
|
||
# - name: Update v1 tag | ||
# run: | | ||
# git push origin :refs/tags/v1 | ||
# git tag -fa v1 -m "Update v1 tag to latest main" | ||
# git push origin v1 |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.