Skip to content

Commit

Permalink
ci: use gpg to sign commit [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
daiyam committed Jan 8, 2025
1 parent 7bef72f commit 50e1085
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 28 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/insider-spearhead.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,6 @@ jobs:
run: ./update_upstream.sh
if: env.SHOULD_BUILD == 'yes' && github.event.inputs.dont_update != 'true'

# - name: Commit changes
# uses: iarekylew00t/verified-bot-commit@v1
# with:
# ref: ${{ env.COMMIT_REF }}
# message: ${{ env.COMMIT_MESSAGE }}
# token: ${{ secrets.STRONGER_GITHUB_TOKEN }}
# files: |
# upstream/*.json
# if: env.SHOULD_BUILD == 'yes' && env.SHOULD_COMMIT == 'yes'

- name: Prepare source
run: ./prepare_src.sh
if: env.SHOULD_BUILD == 'yes'
Expand Down
19 changes: 9 additions & 10 deletions .github/workflows/stable-spearhead.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,19 @@ jobs:
run: ./build.sh
if: env.SHOULD_BUILD == 'yes'

- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true
if: env.SHOULD_BUILD == 'yes' && github.event.inputs.dont_update != 'true'

- name: Update upstream version
run: ./update_upstream.sh
if: env.SHOULD_BUILD == 'yes' && github.event.inputs.dont_update != 'true'

- name: Commit changes
uses: iarekylew00t/verified-bot-commit@v1
with:
ref: ${{ env.COMMIT_REF }}
message: ${{ env.COMMIT_MESSAGE }}
token: ${{ secrets.STRONGER_GITHUB_TOKEN }}
files: |
upstream/*.json
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_COMMIT == 'yes'

- name: Prepare source
run: ./prepare_src.sh
if: env.SHOULD_BUILD == 'yes'
Expand Down
8 changes: 0 additions & 8 deletions update_upstream.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@ git add .
CHANGES=$( git status --porcelain )

if [[ -n "${CHANGES}" ]]; then
# COMMIT_MESSAGE="build(${VSCODE_QUALITY}): update to commit ${MS_COMMIT:0:7}"
# COMMIT_REF=$( git rev-parse --abbrev-ref HEAD )

# if [[ "${GITHUB_ENV}" ]]; then
# echo "SHOULD_COMMIT=yes" >> "${GITHUB_ENV}"
# echo "COMMIT_MESSAGE=${COMMIT_MESSAGE}" >> "${GITHUB_ENV}"
# echo "COMMIT_REF=${COMMIT_REF}" >> "${GITHUB_ENV}"
# fi
git commit -S -m "build(${VSCODE_QUALITY}): update to commit ${MS_COMMIT:0:7}"

BRANCH_NAME=$( git rev-parse --abbrev-ref HEAD )
Expand Down

0 comments on commit 50e1085

Please sign in to comment.