66 repository_dispatch:
77 types: [custom_event_type]
88jobs:
9- blank :
9+ the-power-actions-demo :
1010 runs-on: ubuntu-latest
1111 steps:
1212
13+ - name: check-curl-version
14+ run: |
15+ curl --version
16+
17+ - name: test-connectivity-to-api-github-com
18+ run: |
19+ curl --verbose -H 'Accept: application/vnd.github+json' -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN}}" https://api.github.com/octocat
20+
1321 # See this for some comon scenarios https://github.com/actions/checkout?tab=readme-ov-file#scenarios
14- - name: Checkout
22+ - name: checkout-repo-using-actions-checkout
1523 uses: actions/checkout@v4
1624
1725 # https://github.com/actions/checkout?tab=readme-ov-file#push-a-commit-using-the-built-in-token
18- - name: Push a commit using the built-in token
26+ - name: push-a- commit-to-checked-out-repo- using- built-in- token
1927 run: |
2028 date > generated.txt
2129 git config user.name github-actions
@@ -24,19 +32,19 @@ jobs:
2432 git commit -m "commit generated by github actions in the power"
2533 git push
2634
27- - name: run some commands
35+ - name: echo-hello-world
2836 run: |
2937 echo Hello
3038 mkdir -p dist/hello
3139 echo "### Hello World" > dist/hello/hello-world.md
3240
3341 # https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
34- - name: Store Archive workflow data as artifacts
42+ - name: upload- workflow- artifacts
3543 uses: actions/upload-artifact@v4
3644 with:
37- name: the power workflow-simple artifact upload example
45+ name: pwr- workflow-simple- artifact- upload- example
3846 path: |
39- dist/**/*.md
47+ dist/**/*.*
4048 retention-days: 2
4149
4250 #- name: gh search example with debug mode
4755 # gh search prs "test"
4856
4957
50- - name: gh repo list
58+ - name: gh- repo- list
5159 env:
5260 GITHUB_TOKEN: ${{ github.token }}
5361 run: |
0 commit comments