Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import GPG key for git commit signing #1

Merged
merged 1 commit into from
Jun 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/flake_vendorhash.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ jobs:
with:
fetch-depth: 0
token: ${{ steps.generate_token.outputs.token }}
- name: Import GPG key for git commit signing
run: |
echo "${{ secrets.OCMBOT_SIGNING_KEY }}" | base64 --decode | gpg --import
git config --global user.signingkey "${{ secrets.OCMBOT_SIGNING_KEY_ID }}"
git config --global user.name "ocmbot"
git config --global user.email "[email protected]"
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v12
- name: Update ocm vendor hash
Expand All @@ -45,21 +51,15 @@ jobs:
${diff}
\`\`\`
EOF
- name: Commit
run: |
diff=$(git diff)
if [[ ! -z "$diff" ]]; then
git config --global user.name "ocmbot"
git config --global user.email "[email protected]"
git commit -S -am "update vendorHash"
fi
- name: Create pull request
id: create_pull_request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ steps.generate_token.outputs.token }}
commit-message: update vendorHash
title: Update vendorHash in flake.nix
branch: nix/flake
committer: OCMBot <[email protected]>
team-reviewers: ocm-dev
add-paths: |
flake.nix
Expand Down
Loading