mirror of
https://github.com/fluencelabs/sqlite-wasm-connector
synced 2025-04-24 16:32:12 +00:00
[](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [hashicorp/vault-action](https://togithub.com/hashicorp/vault-action) | action | patch | `v2.8.0` -> `v2.8.1` | --- ### Release Notes <details> <summary>hashicorp/vault-action (hashicorp/vault-action)</summary> ### [`v2.8.1`](https://togithub.com/hashicorp/vault-action/releases/tag/v2.8.1) [Compare Source](https://togithub.com/hashicorp/vault-action/compare/v2.8.0...v2.8.1) ##### 2.8.1 (February 15, 2024) Bugs: - Revert [GH-509](https://togithub.com/hashicorp/vault-action/pull/509) which made a backwards incompatible bump of the node runtime from node16 to node20 [GH-527](https://togithub.com/hashicorp/vault-action/pull/527) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/fluencelabs/sqlite-wasm-connector). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNzMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjE3My4wIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
123 lines
3.2 KiB
YAML
123 lines
3.2 KiB
YAML
name: "release"
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "master"
|
|
|
|
concurrency:
|
|
group: "${{ github.workflow }}-${{ github.ref }}"
|
|
|
|
jobs:
|
|
release-please:
|
|
runs-on: ubuntu-latest
|
|
|
|
outputs:
|
|
release-created: ${{ steps.release.outputs['release_created'] }}
|
|
tag-name: ${{ steps.release.outputs['tag_name'] }}
|
|
version: ${{ steps.release.outputs['version'] }}
|
|
pr: ${{ steps.release.outputs['pr'] }}
|
|
|
|
steps:
|
|
- name: Run release-please
|
|
id: release
|
|
uses: google-github-actions/release-please-action@v4
|
|
with:
|
|
token: ${{ secrets.FLUENCEBOT_RELEASE_PLEASE_PAT }}
|
|
command: manifest
|
|
config-file: .github/release-please/config.json
|
|
manifest-file: .github/release-please/manifest.json
|
|
|
|
- name: Show output from release-please
|
|
if: steps.release.outputs.releases_created
|
|
env:
|
|
RELEASE_PLEASE_OUTPUT: ${{ toJSON(steps.release.outputs) }}
|
|
run: echo "${RELEASE_PLEASE_OUTPUT}" | jq
|
|
|
|
publish:
|
|
if: needs.release-please.outputs.release-created
|
|
runs-on: ubuntu-latest
|
|
needs: release-please
|
|
|
|
permissions:
|
|
contents: write
|
|
id-token: write
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
token: ${{ secrets.FLUENCEBOT_RELEASE_PLEASE_PAT }}
|
|
|
|
- name: Import secrets
|
|
uses: hashicorp/vault-action@v2.8.1
|
|
with:
|
|
url: https://vault.fluence.dev
|
|
path: jwt/github
|
|
role: ci
|
|
method: jwt
|
|
jwtGithubAudience: "https://github.com/fluencelabs"
|
|
jwtTtl: 300
|
|
exportToken: false
|
|
secrets: |
|
|
kv/crates.io/fluencebot token | CARGO_REGISTRY_TOKEN ;
|
|
|
|
- name: Setup Rust toolchain
|
|
uses: dsherret/rust-toolchain-file@v1
|
|
|
|
- name: Setup marine
|
|
uses: fluencelabs/setup-marine@v1
|
|
|
|
- name: Build
|
|
run: ./build.sh
|
|
|
|
- name: Publish to crates.io
|
|
run: cargo publish
|
|
|
|
slack:
|
|
if: always()
|
|
name: "Notify"
|
|
runs-on: ubuntu-latest
|
|
|
|
needs:
|
|
- release-please
|
|
- publish
|
|
|
|
permissions:
|
|
contents: read
|
|
id-token: write
|
|
|
|
steps:
|
|
- uses: lwhiteley/dependent-jobs-result-check@v1
|
|
id: status
|
|
with:
|
|
statuses: failure
|
|
dependencies: ${{ toJSON(needs) }}
|
|
|
|
- name: Log output
|
|
run: |
|
|
echo "statuses:" "${{ steps.status.outputs.statuses }}"
|
|
echo "jobs:" "${{ steps.status.outputs.jobs }}"
|
|
echo "found any?:" "${{ steps.status.outputs.found }}"
|
|
|
|
- name: Import secrets
|
|
uses: hashicorp/vault-action@v2.8.1
|
|
with:
|
|
url: https://vault.fluence.dev
|
|
path: jwt/github
|
|
role: ci
|
|
method: jwt
|
|
jwtGithubAudience: "https://github.com/fluencelabs"
|
|
jwtTtl: 300
|
|
exportToken: false
|
|
secrets: |
|
|
kv/slack/release-please webhook | SLACK_WEBHOOK_URL
|
|
|
|
- uses: ravsamhq/notify-slack-action@v2
|
|
if: steps.status.outputs.found == 'true'
|
|
with:
|
|
status: "failure"
|
|
notification_title: "*{workflow}* has {status_message}"
|
|
message_format: "${{ steps.status.outputs.jobs }} {status_message} in <{repo_url}|{repo}>"
|
|
footer: "<{run_url}>"
|