Skip to content

Commit

Permalink
Adding updates for the power simple workflow demo
Browse files Browse the repository at this point in the history
  • Loading branch information
gm3dmo committed Nov 24, 2024
1 parent 9b2305b commit a23fe97
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions test-data/workflow-simple.yml_
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,24 @@ on:
repository_dispatch:
types: [custom_event_type]
jobs:
blank:
the-power-actions-demo:
runs-on: ubuntu-latest
steps:

- name: check-curl-version
run: |
curl --version

- name: test-connectivity-to-api-github-com
run: |
curl --verbose -H 'Accept: application/vnd.github+json' -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN}}" https://api.github.com/octocat

# See this for some comon scenarios https://github.com/actions/checkout?tab=readme-ov-file#scenarios
- name: Checkout
- name: checkout-repo-using-actions-checkout
uses: actions/checkout@v4

# https://github.com/actions/checkout?tab=readme-ov-file#push-a-commit-using-the-built-in-token
- name: Push a commit using the built-in token
- name: push-a-commit-to-checked-out-repo-using-built-in-token
run: |
date > generated.txt
git config user.name github-actions
Expand All @@ -24,19 +32,19 @@ jobs:
git commit -m "commit generated by github actions in the power"
git push

- name: run some commands
- name: echo-hello-world
run: |
echo Hello
mkdir -p dist/hello
echo "### Hello World" > dist/hello/hello-world.md

# https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
- name: Store Archive workflow data as artifacts
- name: upload-workflow-artifacts
uses: actions/upload-artifact@v4
with:
name: the power workflow-simple artifact upload example
name: pwr-workflow-simple-artifact-upload-example
path: |
dist/**/*.md
dist/**/*.*
retention-days: 2

#- name: gh search example with debug mode
Expand All @@ -47,7 +55,7 @@ jobs:
# gh search prs "test"


- name: gh repo list
- name: gh-repo-list
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
Expand Down

0 comments on commit a23fe97

Please sign in to comment.