Skip to content

Commit 48664d6

Browse files
author
Helder Santos
authored
Test pull request against main (#1)
* Trigger workflow on PR sync & open * Use main version of action
1 parent e40f3a2 commit 48664d6

File tree

2 files changed

+19
-13
lines changed

2 files changed

+19
-13
lines changed

.github/workflows/main.yml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,29 @@
1-
on: [push]
1+
on:
2+
pull_request:
3+
types:
4+
- opened
5+
- synchronize
6+
branches:
7+
- main
28

39
jobs:
410
hello_world_job:
511
runs-on: ubuntu-latest
6-
name: A job to say hello
12+
name: javascript-github-action
713
steps:
814
- name: Hello world action step
915
id: hello
1016
uses: hpsantos/javascript-github-action@main
1117
with:
1218
who-to-greet: "Mona the Octocat"
1319
# Use the output from the `hello` step
14-
- name: Get the output time from hello
15-
run: echo "The time was ${{ steps.hello.outputs.time }}"
16-
- name: Wait some miliseconds
17-
id: wait
18-
uses: hpsantos/[email protected]
19-
with:
20-
miliseconds: 5000
21-
# Use the output from the `hello` step
22-
- name: Get the output time from wait
23-
run: echo "The time was ${{ steps.wait.outputs.time }}"
20+
# - name: Get the output time from hello
21+
# run: echo "The time was ${{ steps.hello.outputs.time }}"
22+
# - name: Wait some miliseconds
23+
# id: wait
24+
# uses: hpsantos/[email protected]
25+
# with:
26+
# miliseconds: 5000
27+
# # Use the output from the `wait` step
28+
# - name: Get the output time from wait
29+
# run: echo "The time was ${{ steps.wait.outputs.time }}"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Test javascript action usage
1+
# Test github action usage
22

33
A small repo to test the usage of external github actions.

0 commit comments

Comments
 (0)