File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,36 +51,45 @@ jobs:
5151
5252 name : Release to rubygems
5353 steps :
54- - name : Read Configuration
54+ -
55+ name : Read Configuration
5556 uses : hashicorp/vault-action@v3
5657 id : vault
5758 with :
5859 url : ${{ env.VAULT_ADDR }}
5960 token : ${{ secrets.VAULT_TOKEN }}
6061 secrets : |
6162 kv/data/rubygems "RUBYGEMS_API_KEY" | GEM_HOST_API_KEY;
62-
63- - name : Checkout
63+ kv/data/github "USERNAME" | GH_USERNAME;
64+ kv/data/github "READ_WRITE_TOKEN" | GH_TOKEN;
65+ -
66+ uses : actions/create-github-app-token@v1
67+ id : app-token
68+ with :
69+ app-id : ${{ vars.CODEGEN_APP_ID }}
70+ private-key : ${{ secrets.CODEGEN_APP_KEY }}
71+ -
72+ name : Checkout
6473 uses : actions/checkout@v4
6574 with :
6675 fetch-depth : 0
67-
68-
69- - name : Install dependencies
76+ token : ${{ steps.app-token.outputs.token }}
77+ -
78+ name : Install dependencies
7079 run : make deps
71-
72- - name : Set up Ruby
80+ -
81+ name : Set up Ruby
7382 uses : ruby/setup-ruby@v1
7483 with :
7584 ruby-version : 3.3
76-
77- - name : Build and push the gem
85+ -
86+ name : Build and push the gem
7887 run : make release
79-
80- - name : Bump to the next version
88+ -
89+ name : Bump to the next version
8190 run : make bump-version
82-
83- - name : Commit changes
91+ -
92+ name : Commit changes
8493 uses : EndBug/add-and-commit@v9
8594 with :
8695 default_author : github_actions
Original file line number Diff line number Diff line change 1- 0.31.4
1+ 0.31.6
Original file line number Diff line number Diff line change 3030.PHONY : bump-version
3131bump-version :
3232 @echo -e " $( ATTN_COLOR) ==> $@ $( NO_COLOR) "
33- @${EXT_BIN_DIR} /svu patch --prefix= " " > ./VERSION
33+ @${EXT_BIN_DIR} /svu patch > ./VERSION
3434
3535.PHONY : push
3636push :
You can’t perform that action at this time.
0 commit comments