@@ -23,21 +23,21 @@ jobs:
2323 steps :
2424 - name : Generate GitHub App token
2525 id : app-token
26- uses : getsentry/action -github-app-token@v3
26+ uses : actions/create -github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
2727 with :
28- app_id : ${{ secrets.APP_ID }}
29- private_key : ${{ secrets.APP_PRIVATE_KEY }}
28+ client-id : ${{ secrets.APP_ID }}
29+ private-key : ${{ secrets.APP_PRIVATE_KEY }}
3030
3131 - name : Checkout
32- uses : actions/checkout@v6
32+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3333
3434 - name : Set up Rust toolchain
35- uses : actions-rust-lang/setup-rust-toolchain@v1
35+ uses : actions-rust-lang/setup-rust-toolchain@2b1f5e9b395427c92ee4e3331786ca3c37afe2d7 # v1.16.0
3636 with :
3737 target : wasm32-unknown-unknown
3838
3939 - name : Install Cargo Binary Install
40- uses : cargo-bins/cargo-binstall@main
40+ uses : cargo-bins/cargo-binstall@dc19f1e48450eefe5a29b8da6c6b00a87d730b37 # v1.18.1
4141
4242 - name : Install crates
4343 run : cargo binstall --force -y cargo-workspaces toml-cli
@@ -52,29 +52,34 @@ jobs:
5252 - name : Add changes
5353 run : git add .
5454
55- - name : Reset and pull
56- run : git reset --hard && git pull
57-
5855 - name : Commit
59- uses : dsanders11/github-app-commit-action@v2
56+ id : commit
57+ uses : dsanders11/github-app-commit-action@2bbcd331016d8c950b05a24b56e7eb9cb50d545e # v2.1.0
6058 with :
6159 message : ${{ steps.extract-version.outputs.VERSION }}
6260 token : ${{ steps.app-token.outputs.token }}
6361
62+ - name : Reset and pull
63+ run : git reset --hard && git pull
64+
6465 - name : Tag
65- uses : bruno-fs/repo-tagger@1.0.0
66- with :
67- tag : ${{ steps.extract-version.outputs.VERSION }}
66+ uses : actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
6867 env :
69- GITHUB_TOKEN : ${{ steps.app-token.outputs.token }}
68+ GIT_TAG : ${{ steps.extract-version.outputs.VERSION }}
69+ GIT_SHA : ${{ steps.commit.outputs.sha }}
70+ with :
71+ script : |
72+ github.rest.git.createRef({
73+ owner: context.repo.owner,
74+ repo: context.repo.repo,
75+ ref: `refs/tags/${process.env.GIT_TAG}`,
76+ sha: process.env.GIT_SHA
77+ })
7078
7179 - name : Release
72- uses : softprops/action-gh-release@v3
80+ uses : softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3.0.0
7381 with :
7482 generate_release_notes : true
7583 make_latest : true
7684 tag_name : ${{ steps.extract-version.outputs.VERSION }}
7785 token : ${{ steps.app-token.outputs.token }}
78-
79- - name : Publish
80- run : cargo workspaces publish --publish-as-is --token "${{ secrets.CRATES_IO_TOKEN }}"
0 commit comments