-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Fix secret used for publishing (#66)
# What ❔ Uses a dedicated secret for publishing workflows. ## Why ❔ This is necessary because of `GITHUB_TOKEN` limitations.
- Loading branch information
Showing
4 changed files
with
13 additions
and
26 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,15 @@ jobs: | |
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: guibranco/[email protected] | ||
if: always() | ||
with: | ||
authToken: ${{ secrets.GITHUB_TOKEN }} | ||
state: ${{ (steps.lint_pr_title.outputs.error_message != null) && 'error' || 'success' }} | ||
context: 'conventional-pr-title' | ||
description: PR title ${{ (steps.lint_pr_title.outputs.error_message != null) && 'does not match' || 'matches' }} Conventional Commits spec | ||
sha: ${{ github.event.pull_request.head.sha }} | ||
|
||
- uses: marocchino/sticky-pull-request-comment@v2 | ||
# When the previous steps fails, the workflow would stop. By adding this | ||
# condition you can continue the execution with the populated error message. | ||
|
@@ -27,7 +36,7 @@ jobs: | |
header: pr-title-lint-error | ||
message: | | ||
Hey there! 👋🏼 | ||
We require pull request titles to follow the [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/) and it looks like your proposed title needs to be adjusted. | ||
Examples of valid PR titles: | ||
|
@@ -36,7 +45,7 @@ jobs: | |
- ci: Add new workflow for linting | ||
Details: | ||
``` | ||
${{ steps.lint_pr_title.outputs.error_message }} | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,8 +38,6 @@ jobs: | |
runs-on: [ubuntu-latest] | ||
name: "release-please: Update version in Cargo.toml" | ||
needs: [check_state] | ||
permissions: | ||
contents: write | ||
if: ${{ needs.check_state.outputs.already_committed != 'true' }} | ||
steps: | ||
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4 | ||
|
@@ -65,7 +63,7 @@ jobs: | |
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "zksync-era-bot" | ||
git remote set-url origin 'https://${{ secrets.GITHUB_TOKEN }}@github.com/matter-labs/vm2.git' | ||
git remote set-url origin 'https://${{ secrets.RELEASE_TOKEN }}@github.com/matter-labs/vm2.git' | ||
git add ./Cargo.toml | ||
git commit -m "$EXPECTED_COMMIT_MESSAGE" | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters