node_modules: commit updates #236
Workflow file for this run
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
name: Setup GPG commit signing | |
on: | |
push: | |
paths: | |
- '**setup-commit-signing**' | |
- 'package.json' | |
- 'package-lock.json' | |
- 'node_modules/**' | |
branches-ignore: | |
- master | |
jobs: | |
commit-signing: | |
if: github.repository_owner == 'Homebrew' && github.actor != 'dependabot[bot]' | |
strategy: | |
matrix: | |
container: | |
- '' | |
- image: ghcr.io/homebrew/ubuntu22.04:master | |
options: --user=root | |
runs-on: ubuntu-latest | |
container: ${{ matrix.container }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Configure git user | |
uses: ./git-user-config/ | |
with: | |
username: BrewTestBot | |
- name: Set up commit signing | |
id: set-up-commit-signing | |
uses: ./setup-commit-signing/ | |
with: | |
signing_key: ${{ secrets.BREWTESTBOT_GPG_SIGNING_SUBKEY }} | |
- name: Make changes and commit them | |
run: | | |
git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
git checkout -b test-setup-commit-signing | |
touch test.txt | |
echo "Hello, Homebrew!" >> test.txt | |
git add test.txt | |
git commit -m "test.txt: create and add content." | |
env: | |
HOMEBREW_GPG_PASSPHRASE: ${{ secrets.BREWTESTBOT_GPG_SIGNING_SUBKEY_PASSPHRASE }} | |
- name: Test | |
run: | | |
git log --show-signature -1 | grep "gpg: Good" |