diff --git a/.github/workflows/gobuild.yml b/.github/workflows/gobuild.yml index d8312ee63..bd593208e 100644 --- a/.github/workflows/gobuild.yml +++ b/.github/workflows/gobuild.yml @@ -26,6 +26,20 @@ jobs: with: go-version: ${{ env.GO_VERSION }} + - name: Run test.sh + run: | + chmod +x test.sh # Make the script executable (if it's not already) + ./test.sh # Run the script + + - name: Read File and Set as Environment Variable + run: | + file_content=$(cat test.txt) + echo "FILE_CONTENT1=$file_content" >> $FILE + + - name: Echo a Variable + run: | + echo "Variable Value: $FILE" + - name: Install golint run: go install golang.org/x/lint/golint@latest diff --git a/test.sh b/test.sh new file mode 100755 index 000000000..a9f190f32 --- /dev/null +++ b/test.sh @@ -0,0 +1 @@ +echo 'hi' > test.txt \ No newline at end of file