-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
46 additions
and
14 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 |
---|---|---|
|
@@ -103,3 +103,4 @@ lib/**/* | |
octo | ||
out | ||
reports/ | ||
.idea/ |
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 @@ | ||
# Building for testing | ||
|
||
To test a branch in GitHub Actions, an updated `dist/index.js` file is required. | ||
|
||
``` | ||
npm run build | ||
git add dist/. | ||
git commit -m "updating index.js" | ||
git log -q -n 1 dist/index.js | less -F | ||
``` | ||
|
||
From the log output take note of the commit hash and push to GitHub | ||
|
||
In a test GitHub action you can use the branched build of the action by referencing the branch or commit hash, see [here](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsuses) for details on the `uses` syntax. | ||
|
||
```yml | ||
env: | ||
|
||
steps: | ||
# ... | ||
- name: Await task in Octopus Deploy 🐙 | ||
uses: OctopusDeploy/await-task-action@my-branch | ||
env: | ||
OCTOPUS_API_KEY: ${{ secrets.API_KEY }} | ||
OCTOPUS_URL: ${{ secrets.SERVER }} | ||
OCTOPUS_SPACE: 'Outer Space' | ||
with: | ||
server_task_id: {{ steps.some_previous_deployment_step.outputs.server_tasks[0].server_task_id }} | ||
``` |
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
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