Skip to content

Commit

Permalink
ci: Calls build_and_publish directly from release-please. (#282)
Browse files Browse the repository at this point in the history
# What ❔

Calls build_and_publish directly from release-please.

<!-- What are the changes this PR brings about? -->
<!-- Example: This PR adds a PR template to the repo. -->
<!-- (For bigger PRs adding more context is appreciated) -->

## Why ❔

This allows to use GITHUB_TOKEN.

<!-- Why are these changes done? What goal do they contribute to? What
are the principles behind them? -->
<!-- Example: PR templates ensure PR reviewers, observers, and future
iterators are in context about the evolution of repos. -->

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [x] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [ ] Tests for the changes have been added / updated.
- [ ] Documentation comments have been added / updated.
- [ ] Code has been formatted via `zk fmt` and `zk lint`.
  • Loading branch information
yorik authored Nov 6, 2023
1 parent 82af98a commit f08beed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Build and publish era-withdrawal-finalizer image

on:
workflow_call:
push:
tags:
- v*
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,15 @@ jobs:
command: manifest
config-file: .github/release-please/config.json
manifest-file: .github/release-please/manifest.json
token: ${{ secrets.ZKSYNC_ADMIN_BOT_ORG_REPO_WRITE }}
token: ${{ secrets.GITHUB_TOKEN }}

- name: Send Release Info
if: ${{ steps.release.outputs.releases_created }}
uses: matter-labs/format-release-please-for-slack-action@69e6fe9e4ec531b7b5fb0d826f73c190db83cf42 # v2.1.0
with:
release-please-output: ${{ toJSON(steps.release.outputs) }}
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_RELEASES }}

- name: Build and publish
if: ${{ steps.release.outputs.releases_created }}
uses: ./.github/workflows/build_and_publish.yml

0 comments on commit f08beed

Please sign in to comment.