chore: init secrets #2
This file contains 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: Test Action Locally | |
on: [push] | |
jobs: | |
test-action: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Log all inputs | |
run: | | |
echo "Cloudflare API Token: ${{ secrets.CLOUDFLARE_API_TOKEN || env.CLOUDFLARE_API_TOKEN}}" | |
echo "Repository: ${{ github.repository }}" | |
echo "Production Branch: ${{ github.ref }}" | |
echo "Output Directory: ${{ github.workspace }}" | |
echo "Is Production: ${{ github.event_name == 'push' }}" | |
env: | |
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN || env.CLOUDFLARE_API_TOKEN }} | |
- name: Run my custom action | |
uses: ./ # Points to the project root where action.yml is located |