From 07426b594ded5793c2ed51976a6794d32e543707 Mon Sep 17 00:00:00 2001 From: Joshua Tai Date: Tue, 21 May 2024 11:50:47 +0800 Subject: [PATCH] fix: initial a tmicon building workflow --- .github/workflows/main.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..f4c7a06 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,36 @@ +name: Update Test File + +on: + push: + branches: + - dev + +jobs: + update-file: + runs-on: ebf-pod-ubuntu-2004@${{ github.run_id }}-test-tmicon-builder + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Check git status + run: git status + + - name: Write to test.txt + run: echo "This is a dynamically written text file." > test.txt + + - name: Configure Git + run: | + git config --global user.name 'HIE UX Service' + git config --global user.email 'hie_ux_service@trendmicro.com' + + - name: Add changes + run: git add test.txt + + - name: Commit changes + run: git commit -m "Add test.txt with dynamic content" + + - name: Push changes + env: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + run: git push origin main \ No newline at end of file