mirror of
https://github.com/swc-project/swc.git
synced 2024-11-27 13:38:33 +03:00
chore(ci): Skip instead of cancel
This commit is contained in:
parent
d66f701a4a
commit
85caf291e2
11
.github/workflows/bot.yml
vendored
11
.github/workflows/bot.yml
vendored
@ -76,38 +76,41 @@ jobs:
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||
|
||||
- name: Cancel if there's no change
|
||||
if: steps.bump.outcome != 'success' || steps.bump.conclusion != 'success'
|
||||
uses: andymckay/cancel-action@0.2
|
||||
|
||||
- name: Update changelog
|
||||
if: steps.bump.outcome == 'success' && steps.bump.conclusion == 'success'
|
||||
run: |
|
||||
yarn changelog
|
||||
|
||||
- name: Update lockfile
|
||||
if: steps.bump.outcome == 'success' && steps.bump.conclusion == 'success'
|
||||
run: |
|
||||
cargo metadata --format-version 1 > /dev/null
|
||||
|
||||
- name: Create commit
|
||||
if: steps.bump.outcome == 'success' && steps.bump.conclusion == 'success'
|
||||
run: |
|
||||
git add -A
|
||||
git commit --author="SWC Bot <bot@swc.rs>" -m 'chore: Publish crates'
|
||||
|
||||
- uses: webfactory/ssh-agent@v0.5.4
|
||||
if: steps.bump.outcome == 'success' && steps.bump.conclusion == 'success'
|
||||
with:
|
||||
ssh-private-key: ${{ secrets.SWC_BOT_SSH }}
|
||||
|
||||
# Push back, using ssh
|
||||
- name: Push back
|
||||
if: steps.bump.outcome == 'success' && steps.bump.conclusion == 'success'
|
||||
run: |
|
||||
git push git@github.com:swc-project/swc.git --no-verify
|
||||
|
||||
- name: Configure crates.io
|
||||
if: steps.bump.outcome == 'success' && steps.bump.conclusion == 'success'
|
||||
run: |
|
||||
cargo login $CARGO_TOKEN
|
||||
env:
|
||||
CARGO_TOKEN: ${{ secrets.CARGO_TOKEN }}
|
||||
|
||||
- name: Publish crates
|
||||
if: steps.bump.outcome == 'success' && steps.bump.conclusion == 'success'
|
||||
run: |
|
||||
cargo mono publish --no-verify
|
||||
|
Loading…
Reference in New Issue
Block a user