File tree Expand file tree Collapse file tree 6 files changed +47
-4
lines changed Expand file tree Collapse file tree 6 files changed +47
-4
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ name : release-please
3+
4+ on :
5+ push :
6+ branches :
7+ - main
8+
9+ jobs :
10+ release-please :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : google-github-actions/release-please-action@v4
14+ id : release
15+ - uses : actions/checkout@v4
16+ - name : tag major and minor versions
17+ if : ${{ steps.release.outputs.release_created }}
18+ run : |
19+ git config user.name github-actions[bot]
20+ git config user.email 41898282+github-actions[bot]@users.noreply.github.com
21+ git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/google-github-actions/release-please-action.git"
22+ git tag -d v${{ steps.release.outputs.major }} || true
23+ git tag -d v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
24+ git push origin :v${{ steps.release.outputs.major }} || true
25+ git push origin :v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
26+ git tag -a v${{ steps.release.outputs.major }} -m "Release v${{ steps.release.outputs.major }}"
27+ git tag -a v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} -m "Release v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}"
28+ git push origin v${{ steps.release.outputs.major }}
29+ git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}
Original file line number Diff line number Diff line change 88 runs-on : ubuntu-latest
99 name : A job to test action with prefix
1010 steps :
11- - uses : actions/checkout@v2
11+ - uses : actions/checkout@v4
1212 - name : JSON to variables
1313 uses : antifree/json-to-variables@HEAD
1414 with :
2121 runs-on : ubuntu-latest
2222 name : A job to test action without prefix
2323 steps :
24- - uses : actions/checkout@v2
24+ - uses : actions/checkout@v4
2525 - name : JSON to variables
2626 uses : antifree/json-to-variables@HEAD
2727 with :
Original file line number Diff line number Diff line change 1+ {
2+ "." : " 1.1.2"
3+ }
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ The prefix (optional). Default value is empty string.
3333### YML example
3434``` yml
3535- name : JSON to variables
36- 36+ uses :
antifree/[email protected] # x-release-please-version 3737 with :
3838 filename : ' test.json'
3939 prefix : ' test'
Original file line number Diff line number Diff line change @@ -13,5 +13,5 @@ inputs:
1313 required : false
1414 default : ' '
1515runs :
16- using : ' node16 '
16+ using : ' node20 '
1717 main : ' dist/index.js'
Original file line number Diff line number Diff line change 1+ {
2+ "packages" : {
3+ "." : {
4+ "release-type" : " simple" ,
5+ "extra-files" : [
6+ " README.md"
7+ ]
8+ }
9+ },
10+ "$schema" : " https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
11+ }
You can’t perform that action at this time.
0 commit comments