From e3b5c7c57c292f75e4a36cf92436f435cc787047 Mon Sep 17 00:00:00 2001 From: enrico Date: Tue, 15 Jun 2021 18:03:13 +0200 Subject: [PATCH 1/3] A --- .github/workflows/github-actions-demo.yml | 3 +-- main.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index 5db1915..3c209ae 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -14,8 +14,7 @@ jobs: - run: | cd ${{ github.workspace }} gcc main.c -o main - ./main > output.txt - cat output.txt + ./main - name: List files in the repository run: | ls ${{ github.workspace }} diff --git a/main.c b/main.c index 56f9716..cbd6ba5 100644 --- a/main.c +++ b/main.c @@ -3,6 +3,6 @@ int main() { int a = 0; - printf("Bella Stronzi!\n"); + fprintf(stderr,"Bella Stronzi!\n"); return a; } From 5f5a7ce18af168c86858533b103ab1e9aab3b560 Mon Sep 17 00:00:00 2001 From: enrico Date: Tue, 15 Jun 2021 18:08:05 +0200 Subject: [PATCH 2/3] A --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index cbd6ba5..cfb7568 100644 --- a/main.c +++ b/main.c @@ -3,6 +3,6 @@ int main() { int a = 0; - fprintf(stderr,"Bella Stronzi!\n"); - return a; + printf("Bella Stronzi!\n"); + return -1; } From 70f195784fdb3ae87eafa4dda09680adfbe17148 Mon Sep 17 00:00:00 2001 From: enrico Date: Tue, 15 Jun 2021 18:09:54 +0200 Subject: [PATCH 3/3] A --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index cfb7568..ab0881e 100644 --- a/main.c +++ b/main.c @@ -4,5 +4,5 @@ int main() { int a = 0; printf("Bella Stronzi!\n"); - return -1; + return -2; }