Skip to content

Commit 6604881

Browse files
committed
change id
1 parent a69734d commit 6604881

File tree

1 file changed

+48
-48
lines changed

1 file changed

+48
-48
lines changed

action.yml

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: verified-bot-commit
1+
name: verified-bot-commit-rs
22
description: GitHub Action for creating signed and verified bot commits
33
author: siiway
44

@@ -90,54 +90,54 @@ outputs:
9090
runs:
9191
using: composite
9292
steps:
93-
- name: Download verified-bot-commit
94-
shell: bash
95-
run: |
96-
VERSION="v0.1.0"
97-
BASE_URL="https://github.com/siiway/verified_bot_commit/releases/download/${VERSION}"
93+
- name: Download verified-bot-commit
94+
shell: bash
95+
run: |
96+
VERSION="v0.1.0"
97+
BASE_URL="https://github.com/siiway/verified_bot_commit/releases/download/${VERSION}"
9898
99-
case "$RUNNER_OS-$RUNNER_ARCH" in
100-
Linux-X64) TARGET="x86_64-unknown-linux-gnu" ;;
101-
Linux-ARM64) TARGET="aarch64-unknown-linux-gnu" ;;
102-
macOS-X64) TARGET="x86_64-apple-darwin" ;;
103-
macOS-ARM64) TARGET="aarch64-apple-darwin" ;;
104-
Windows-X64) TARGET="x86_64-pc-windows-msvc" ;;
105-
*) echo "::error::Unsupported platform: $RUNNER_OS-$RUNNER_ARCH" && exit 1 ;;
106-
esac
99+
case "$RUNNER_OS-$RUNNER_ARCH" in
100+
Linux-X64) TARGET="x86_64-unknown-linux-gnu" ;;
101+
Linux-ARM64) TARGET="aarch64-unknown-linux-gnu" ;;
102+
macOS-X64) TARGET="x86_64-apple-darwin" ;;
103+
macOS-ARM64) TARGET="aarch64-apple-darwin" ;;
104+
Windows-X64) TARGET="x86_64-pc-windows-msvc" ;;
105+
*) echo "::error::Unsupported platform: $RUNNER_OS-$RUNNER_ARCH" && exit 1 ;;
106+
esac
107107
108-
ARCHIVE="verified_bot_commit-${TARGET}"
109-
if [ "$RUNNER_OS" = "Windows" ]; then
110-
curl -fsSL "${BASE_URL}/${ARCHIVE}.zip" -o archive.zip
111-
unzip -o archive.zip -d "$RUNNER_TEMP"
112-
BINARY="$RUNNER_TEMP/verified_bot_commit.exe"
113-
else
114-
curl -fsSL "${BASE_URL}/${ARCHIVE}.tar.gz" -o archive.tar.gz
115-
tar -xzf archive.tar.gz -C "$RUNNER_TEMP"
116-
BINARY="$RUNNER_TEMP/verified_bot_commit"
117-
chmod +x "$BINARY"
118-
fi
108+
ARCHIVE="verified_bot_commit-${TARGET}"
109+
if [ "$RUNNER_OS" = "Windows" ]; then
110+
curl -fsSL "${BASE_URL}/${ARCHIVE}.zip" -o archive.zip
111+
unzip -o archive.zip -d "$RUNNER_TEMP"
112+
BINARY="$RUNNER_TEMP/verified_bot_commit.exe"
113+
else
114+
curl -fsSL "${BASE_URL}/${ARCHIVE}.tar.gz" -o archive.tar.gz
115+
tar -xzf archive.tar.gz -C "$RUNNER_TEMP"
116+
BINARY="$RUNNER_TEMP/verified_bot_commit"
117+
chmod +x "$BINARY"
118+
fi
119119
120-
echo "VERIFIED_BOT_COMMIT_BIN=$BINARY" >> "$GITHUB_ENV"
120+
echo "VERIFIED_BOT_COMMIT_BIN=$BINARY" >> "$GITHUB_ENV"
121121
122-
- name: Run verified-bot-commit
123-
id: run
124-
shell: bash
125-
env:
126-
INPUT_REPOSITORY: ${{ inputs.repository }}
127-
INPUT_REF: ${{ inputs.ref }}
128-
INPUT_FILES: ${{ inputs.files }}
129-
INPUT_MESSAGE: ${{ inputs.message }}
130-
INPUT_MESSAGE_FILE: ${{ inputs.message-file }}
131-
INPUT_AUTO_STAGE: ${{ inputs.auto-stage }}
132-
INPUT_UPDATE_LOCAL: ${{ inputs.update-local }}
133-
INPUT_FORCE_PUSH: ${{ inputs.force-push }}
134-
INPUT_IF_NO_COMMIT: ${{ inputs.if-no-commit }}
135-
INPUT_ALLOW_EMPTY_COMMIT: ${{ inputs.allow-empty-commit }}
136-
INPUT_NO_THROTTLE: ${{ inputs.no-throttle }}
137-
INPUT_NO_RETRY: ${{ inputs.no-retry }}
138-
INPUT_MAX_RETRIES: ${{ inputs.max-retries }}
139-
INPUT_FOLLOW_SYMLINKS: ${{ inputs.follow-symlinks }}
140-
INPUT_WORKSPACE: ${{ inputs.workspace }}
141-
INPUT_API_URL: ${{ inputs.api-url }}
142-
INPUT_TOKEN: ${{ inputs.token }}
143-
run: "$VERIFIED_BOT_COMMIT_BIN"
122+
- name: Run verified-bot-commit
123+
id: run
124+
shell: bash
125+
env:
126+
INPUT_REPOSITORY: ${{ inputs.repository }}
127+
INPUT_REF: ${{ inputs.ref }}
128+
INPUT_FILES: ${{ inputs.files }}
129+
INPUT_MESSAGE: ${{ inputs.message }}
130+
INPUT_MESSAGE_FILE: ${{ inputs.message-file }}
131+
INPUT_AUTO_STAGE: ${{ inputs.auto-stage }}
132+
INPUT_UPDATE_LOCAL: ${{ inputs.update-local }}
133+
INPUT_FORCE_PUSH: ${{ inputs.force-push }}
134+
INPUT_IF_NO_COMMIT: ${{ inputs.if-no-commit }}
135+
INPUT_ALLOW_EMPTY_COMMIT: ${{ inputs.allow-empty-commit }}
136+
INPUT_NO_THROTTLE: ${{ inputs.no-throttle }}
137+
INPUT_NO_RETRY: ${{ inputs.no-retry }}
138+
INPUT_MAX_RETRIES: ${{ inputs.max-retries }}
139+
INPUT_FOLLOW_SYMLINKS: ${{ inputs.follow-symlinks }}
140+
INPUT_WORKSPACE: ${{ inputs.workspace }}
141+
INPUT_API_URL: ${{ inputs.api-url }}
142+
INPUT_TOKEN: ${{ inputs.token }}
143+
run: "$VERIFIED_BOT_COMMIT_BIN"

0 commit comments

Comments
 (0)