forked from unstructuredstudio/zubhub
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'unstructuredstudio:master' into master
- Loading branch information
Showing
47 changed files
with
1,292 additions
and
499 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Checkout files action | ||
inputs: | ||
ref: | ||
required: false | ||
type: string | ||
repository: | ||
required: false | ||
type: string | ||
fetch_depth: | ||
required: false | ||
type: number | ||
default: 1 | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Checkout files | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.ref }} | ||
repository: ${{ inputs.repository }} | ||
fetch-depth: ${{ inputs.fetch_depth }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Comment action | ||
inputs: | ||
token: | ||
required: true | ||
type: string | ||
issue_number: | ||
required: true | ||
type: string | ||
owner: | ||
required: true | ||
type: string | ||
repo: | ||
required: true | ||
type: string | ||
message: | ||
required: true | ||
type: string | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/github-script@v5 | ||
with: | ||
github-token: ${{ inputs.token }} | ||
script: | | ||
const issue_number = "${{ inputs.issue_number }}"; | ||
const owner = "${{ inputs.owner }}"; | ||
const repo = "${{ inputs.repo }}"; | ||
await github.rest.issues.createComment({ | ||
owner: owner, | ||
repo: repo, | ||
issue_number: issue_number, | ||
body: `${{ inputs.message }}`, | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Docker build and push action | ||
inputs: | ||
username: | ||
required: true | ||
type: string | ||
token: | ||
required: true | ||
type: string | ||
context: | ||
required: true | ||
type: string | ||
file: | ||
required: true | ||
type: string | ||
tags: | ||
required: true | ||
type: string | ||
push: | ||
required: true | ||
type: boolean | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ inputs.username }} | ||
password: ${{ inputs.token }} | ||
|
||
- name: Build and push | ||
id: docker_build | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: ${{ inputs.context }} | ||
file: ${{ inputs.file }} | ||
push: ${{ inputs.push }} | ||
tags: ${{ inputs.tags }} | ||
|
||
- name: Image digest | ||
shell: bash | ||
run: echo ${{ steps.docker_build.outputs.digest }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Doctl action | ||
inputs: | ||
token: | ||
required: true | ||
type: string | ||
script: | ||
required: true | ||
type: string | ||
outputs: | ||
JSON_STRING: | ||
value: ${{ toJson(steps.script.outputs) }} | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install doctl | ||
uses: digitalocean/action-doctl@v2 | ||
with: | ||
token: ${{ inputs.token }} | ||
|
||
- name: execute script | ||
id: script | ||
run: ${{ inputs.script }} | ||
shell: bash |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Copy files action | ||
inputs: | ||
host: | ||
required: true | ||
type: string | ||
username: | ||
required: true | ||
type: string | ||
key: | ||
required: true | ||
type: string | ||
source: | ||
required: true | ||
type: string | ||
target: | ||
required: true | ||
type: string | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Copy file via scp | ||
uses: appleboy/scp-action@master | ||
with: | ||
host: ${{ inputs.host }} | ||
username: ${{ inputs.username }} | ||
key: ${{ inputs.key }} | ||
source: ${{ inputs.source }} | ||
target: ${{ inputs.target }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Execute remote command action | ||
inputs: | ||
host: | ||
required: true | ||
type: string | ||
username: | ||
required: true | ||
type: string | ||
key: | ||
required: true | ||
type: string | ||
script: | ||
required: true | ||
type: string | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Executing remote command | ||
uses: appleboy/ssh-action@master | ||
with: | ||
host: ${{ inputs.host }} | ||
username: ${{ inputs.username }} | ||
key: ${{ inputs.key }} | ||
script: ${{ inputs.script }} |
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
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
Oops, something went wrong.