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