maddox / actions Goto Github PK
View Code? Open in Web Editor NEWA collection of useful GitHub Actions
A collection of useful GitHub Actions
I added a secret PORT and set it to a port other than the default 22 but it is still being connected to 22 regardless and then connection time out.
When sending a push notification via the GitHub action maddox/actions/pushover@master
I would like to send a dynamic message including the commit SHA (GITHUB_SHA
) or the ref (GITHUB_REF
).
Currently this is not possible since the message is hardcoded in the environment variables of the action itself. Indirect expansion (I.E. ${!GITHUB_SHA}
) doesn't work either.
This could be solved by not using environment variables to transmit the message, but pass the message in the args
parameter.
Requires a rewrite of the action, but might be done backward compatible. I.e. if the named argument title
is not passed in args
, take the enviroment variable TITLE
instead.
/usr/bin/docker run --name bb8170d7fc42bc4d49f0b0a9f5bfdb63dcef_8d80bd --label 04bb81 --workdir /github/workspace --rm -e PRIVATE_KEY -e HOST -e USER -e INPUT_ARGS -e HOME -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/api-tinyfold/api-tinyfold":"/github/workspace" 04bb81:70d7fc42bc4d49f0b0a9f5bfdb63dcef whoami
Agent pid 12
Enter passphrase for /github/home/.ssh/deploy_key:
##[error]Docker run failed with exit code 1
Is it possible to support sshing into multiple hosts?
This is the action that failed on my side :
action "Wait for HTTP 200 (1m)" {
uses = "maddox/actions/wait-for-200@f196820c"
needs = ["Deploy"]
env = {
URL = "https://nicolas-coutin.fr"
SECONDS_BETWEEN_CHECKS = "10"
MAX_TRIES = "6"
}
}
And this is the output of this action :
[...]
Removing intermediate container 3e2b37d22eef
---> c9df012efc23
Successfully built c9df012efc23
Successfully tagged gcr.io/gct-12-xqldxp6pct9p6gzz1ndry33/0c14080517cf3035df66ffeca71df94264f6402eafc4625cbe2a17dd40e5d482/5f8b1cef85dff8ddaaad22f9cf7ed3469bd3a597d9ba8958d1bbaf213b9980fd:bf2d2a5d1e6177a35339b6269df767ea568ee0971f3cc8d9cb1a4c6ff5d5e0be
Already have image (with digest): gcr.io/github-actions-images/action-runner:latest
/entrypoint.sh: 7: /entrypoint.sh: curl: not found
### FAILED Wait for HTTP 200 (1m) 07:58:08Z (4m0.046s)
Seems like the curl
command is missing.
@maddox I have a node project that has a GitHub repo as a dependency. When I run npm install
in Actions I get the error saying that the host key is invalid as it tries to access it via ssh. Would this action be applicable to my use case? What would the HOST, USER, and PRIVATE_KEY be? If not, would you know what I can do to fix that?
hi, thank you for this action. now i dont need to login to server to pull latest repo
here is yaml config
`
name: Run SSH Command
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Update Server Repo
uses: maddox/actions/ssh@master
env:
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
HOST: ${{ secrets.HOST }}
USER: ${{ secrets.USER }}
with:
args: git pull or any code you want to run
`
Note - you can add more options please refer yaml config documentations
When using the ssh action I'm getting this error:
E: The repository 'http://security.debian.org/debian-security stable/updates Release' does not have a Release file.
The command '/bin/sh -c apt-get update && apt-get install -y openssh-client && rm -Rf /var/lib/apt/lists/*' returned a non-zero code: 100
Does this action need to be updated?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. đđđ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google â¤ī¸ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.