18 Commits
v1 ... 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
03863e5df1 change a newm
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-09-21 14:52:59 +08:00
bd86c45e89 fix the typo actions
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-09-21 14:43:26 +08:00
78e20cd879 run hello
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-09-21 14:37:57 +08:00
53210d7d43 Update the action name
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-09-21 14:32:40 +08:00
a2e82b5a21 Update the action name
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-09-21 14:29:45 +08:00
631f11007c fix the typo actions
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-09-21 14:25:40 +08:00
3 changed files with 14 additions and 17 deletions

View File

@@ -2,24 +2,14 @@ name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
OBS-Service-Actions-Test:
hello_world_job:
runs-on: ubuntu-latest
name: opensuse container checkout test
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by opensuse!"
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code
uses: actions/checkout@v3
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."
- name: Hello action steps
id: hello
uses: actions/hello-docker-action@v2
- name: Hello world action step
uses: https://src.opensuse.org/alexlau/gitea-actions-test@v4
with:
who-to-greety: 'AvengerMoJo'
who-to-greet: 'AvengerMoJo'
id: hello
- name: Get the output time
run: echo "The time was ${{ steps.hello.outputs.time }}"

View File

@@ -1,5 +1,10 @@
FROM opensuse/tumbleweed:latest
RUN zypper --non-interactive update
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