|
1 | | -name: verified-bot-commit |
| 1 | +name: verified-bot-commit-rs |
2 | 2 | description: GitHub Action for creating signed and verified bot commits |
3 | 3 | author: siiway |
4 | 4 |
|
@@ -90,54 +90,54 @@ outputs: |
90 | 90 | runs: |
91 | 91 | using: composite |
92 | 92 | 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}" |
98 | 98 |
|
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 |
107 | 107 |
|
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 |
119 | 119 |
|
120 | | - echo "VERIFIED_BOT_COMMIT_BIN=$BINARY" >> "$GITHUB_ENV" |
| 120 | + echo "VERIFIED_BOT_COMMIT_BIN=$BINARY" >> "$GITHUB_ENV" |
121 | 121 |
|
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