Update test_action.yaml #29
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 actions | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
release: | |
types: [published] | |
jobs: | |
one: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v3 | |
- name: Test Git commands | |
run: | | |
ls | |
git remote -v | |
git branch | |
- name: Dump GitHub context | |
env: | |
GITHUB_CONTEXT: ${{ toJson(github) }} | |
run: echo "$GITHUB_CONTEXT" | |
# - name: Dump job context | |
# env: | |
# JOB_CONTEXT: ${{ toJson(job) }} | |
# run: echo "$JOB_CONTEXT" | |
# - name: Dump steps context | |
# env: | |
# STEPS_CONTEXT: ${{ toJson(steps) }} | |
# run: echo "$STEPS_CONTEXT" | |
# - name: Dump runner context | |
# env: | |
# RUNNER_CONTEXT: ${{ toJson(runner) }} | |
# run: echo "$RUNNER_CONTEXT" | |
# - name: Dump strategy context | |
# env: | |
# STRATEGY_CONTEXT: ${{ toJson(strategy) }} | |
# run: echo "$STRATEGY_CONTEXT" | |
# - name: Dump matrix context | |
# env: | |
# MATRIX_CONTEXT: ${{ toJson(matrix) }} | |
# run: echo "$MATRIX_CONTEXT" | |
# - name: Dump output context | |
# env: | |
# OUTPUT_CONTEXT: ${{ toJson(steps.meta.outputs) }} | |
# run: echo "$OUTPUT_CONTEXT" | |
# - name: Show set env variable | |
# env: | |
# HUGO_ENV: ${{ github.event_name == 'release' && format('{0}-{1}', 'production', github.ref_name) | |
# || github.ref_name == 'main' && format('{0}-{1}', 'production', github.sha) | |
# || format('{0}-{1}', 'development', github.sha) }} | |
# run: echo "The hugo env is - $HUGO_ENV" | |
# - name: Show custom variables | |
# run: | | |
# echo "${{ github.ref_name == 'main' && 'production' || github.event_name == 'release' && 'production' || 'development' }}" | |
# echo "This is what the version is ${{ github.event_name == 'release' && github.ref_name || github.sha }}" | |
# echo "The git ref name is: ${{ github.ref_name }}" |