Refactor code structure for improved readability and maintainability #8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Hello World Workflow | |
| on: | |
| push: | |
| branches: [main, develop] | |
| workflow_dispatch: | |
| jobs: | |
| hello: | |
| name: Say Hello | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Print hello message | |
| run: echo "🎉 Hello from GitHub Actions!" | |
| - name: Print current time | |
| run: date | |
| - name: Print runner information | |
| run: | | |
| echo "Runner OS: ${{ runner.os }}" | |
| echo "Runner Arch: ${{ runner.arch }}" | |
| echo "GitHub SHA: ${{ github.sha }}" | |
| echo "GitHub Ref: ${{ github.ref }}" | |
| echo "Actor: ${{ github.actor }}" | |
| - name: Check out code | |
| uses: actions/checkout@v3 | |
| - name: List files | |
| run: ls -la | |
| - name: Print success message | |
| run: echo "✅ Workflow completed successfully!" |