Skip to content

Commit

Permalink
context
Browse files Browse the repository at this point in the history
  • Loading branch information
fendermice committed Mar 2, 2023
1 parent 3429aa4 commit f533352
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 18 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/context.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Context testing
on: push

jobs:
dump_contexts_to_log:
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
id: github_context_step
run: echo '${{ toJSON(github) }}'
- name: Dump job context
run: echo '${{ toJSON(job) }}'
- name: Dump steps context
run: echo '${{ toJSON(steps) }}'
- name: Dump runner context
run: echo '${{ toJSON(runner) }}'
- name: Dump strategy context
run: echo '${{ toJSON(strategy) }}'
- name: Dump matrix context
run: echo '${{ toJSON(matrix) }}'
36 changes: 18 additions & 18 deletions .github/workflows/env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,24 +44,24 @@ jobs:
permissions:
issues: write
steps:
- name: Push random file
run: |
pwd
ls -a
git init
git remote add origin "https://$GITHUB_ACTOR:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY.git"
git config --global user.email "ako2@ako2.com"
git config --global user.name "ako2"
git fetch
git checkout master
git branch --set-upstream-to=origin/master
git pull
ls -a
echo $RANDOM >> randomfile.txt
ls -a
git add -A
git commit -m"add ramdom file"
git push
# - name: Push random file
# run: |
# pwd
# ls -a
# git init
# git remote add origin "https://$GITHUB_ACTOR:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY.git"
# git config --global user.email "ako2@ako2.com"
# git config --global user.name "ako2"
# git fetch
# git checkout master
# git branch --set-upstream-to=origin/master
# git pull
# ls -a
# echo $RANDOM >> randomfile.txt
# ls -a
# git add -A
# git commit -m"add ramdom file"
# git push
- name: Create issue using REST API
run: |
curl --request POST \
Expand Down

0 comments on commit f533352

Please sign in to comment.