12 Commits
v2 ... v4

Author SHA1 Message Date
60dc6b5e85 Add id hello back to the service to track time env var
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-10-08 17:45:16 +08:00
2b80a5d097 Fix hello script with env:GITEA_OUTPUT
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-10-08 17:32:06 +08:00
c67125bf2a Fix permission error
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-10-08 17:21:44 +08:00
ae3e517fec Testing the env GITEA_OUTPUT
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-10-08 16:44:04 +08:00
5738f9f327 Fix typo / before tag v3
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-10-02 22:28:22 +08:00
f1613a9de8 Triggering the push
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-09-25 15:44:08 +08:00
461351567e update yaml
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-09-22 01:06:21 +08:00
fb2fc5111e update script to :github
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-09-22 01:03:54 +08:00
b2136c96b7 update test
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-09-22 01:00:13 +08:00
e45b4b21e8 change back to github output
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-09-21 15:10:58 +08:00
6de8225ea3 change version
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-09-21 15:02:31 +08:00
e19dc2794b change a newm
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-09-21 14:59:40 +08:00
3 changed files with 6 additions and 4 deletions

View File

@@ -7,10 +7,9 @@ jobs:
name: opensuse container checkout test
steps:
- name: Hello world action step
id: hello
uses: https://src.opensuse.org/alexlau/gitea-actions-test/@v1
uses: https://src.opensuse.org/alexlau/gitea-actions-test@v4
with:
who-to-greet: 'AvengerMoJo'
# Use the output from the `hello` step
id: hello
- name: Get the output time
run: echo "The time was ${{ steps.hello.outputs.time }}"

View File

@@ -5,5 +5,6 @@ RUN zypper --non-interactive install osc
RUN zypper --non-interactive clean --all
COPY hello.sh /hello.sh
RUN chmod +x /hello.sh
ENTRYPOINT ["/hello.sh"]

View File

@@ -2,4 +2,6 @@
echo "Hello $1"
time=$(date)
echo "time=$time" >> $GITEA_OUTPUT
echo "time=$time" >> $env:GITHUB_OUTPUT
echo "time=$time" >> $env:GITEA_OUTPUT