This repository has been archived by the owner on Aug 30, 2021. It is now read-only.
generated from actions/javascript-action
-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from matootie/feature/minimal-input
Reduce required input
- Loading branch information
Showing
7 changed files
with
80 additions
and
50 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 |
---|---|---|
@@ -1,19 +1,18 @@ | ||
name: "Test Run" | ||
on: | ||
push: | ||
paths: | ||
paths: | ||
- "dist/index.js" | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v1 | ||
- name: Run the Action | ||
id: run-action | ||
uses: ./ | ||
with: | ||
username: matootie | ||
personalAccessToken: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
- name: Test output | ||
run: echo ${{ steps.run-action.outputs.imageURL }} | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
- name: Run the Action | ||
id: run-action | ||
uses: ./ | ||
with: | ||
accessToken: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Test output | ||
run: echo ${{ steps.run-action.outputs.imageURL }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,31 @@ | ||
name: 'GitHub Docker Action' | ||
description: 'Build and publish your repository as a Docker image and push it to GitHub Package Registry in one step' | ||
name: "GitHub Docker Action" | ||
description: "Build and publish your repository as a Docker image and push it to GitHub Package Registry in one step" | ||
inputs: | ||
username: | ||
description: 'GitHub user to publish the image on behalf of.' | ||
required: true | ||
personalAccessToken: | ||
description: 'GitHub Personal Access Token for the user.' | ||
accessToken: | ||
description: "GitHub Repository Token to log in using." | ||
required: true | ||
context: | ||
description: "Where should GitHub Docker find the Dockerfile, relative to the root of the repository." | ||
required: false | ||
default: "." | ||
username: | ||
description: "GitHub user to publish the image on behalf of." | ||
required: false | ||
repositoryName: | ||
description: 'The repository to push the image to. Defaults to current repository. Must be specified in format user/repo' | ||
description: "The repository to push the image to. Defaults to current repository. Must be specified in format user/repo" | ||
required: false | ||
imageName: | ||
description: 'The desired name for the image. Defaults to current repository name.' | ||
description: "The desired name for the image. Defaults to current repository name." | ||
required: false | ||
imageTag: | ||
description: 'The desired tag for the image. Defaults to current branch or release version number.' | ||
description: "The desired tag for the image. Defaults to current branch or release version number." | ||
required: false | ||
outputs: | ||
imageURL: | ||
description: 'The URL of the image.' | ||
description: "The URL of the image." | ||
runs: | ||
using: 'node12' | ||
main: 'dist/index.js' | ||
using: "node12" | ||
main: "dist/index.js" | ||
branding: | ||
icon: 'anchor' | ||
color: 'blue' | ||
icon: "anchor" | ||
color: "blue" |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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