Skip to content

Commit

Permalink
functions
Browse files Browse the repository at this point in the history
  • Loading branch information
e-oloughlin committed Jan 31, 2021
1 parent 7999261 commit 23a45d6
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 18 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/context.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ name: Context
on: push

jobs:
functions:
runs-on: ubuntu-latest
steps:
- name: Dump
run: |
echo ${{ contains('hello', 'll') }}
echo ${{ startsWith('hello', 'he') }}
echo ${{ endsWith('hello', 'lo') }}
echo ${{ format('Hello {0} {1} {2}', 'World', '!', '!') }}
one:
runs-on: ubuntu-latest
steps:
Expand Down
36 changes: 18 additions & 18 deletions .github/workflows/env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,24 @@ jobs:
create_issue:
runs-on: ubuntu-latest
steps:
- name: Push a random file
run: |
pwd
ls -la
git init
git remote add origin "https://$GITHUB_ACTOR:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY.git"
git config --global user.email my-bot@github-action.com
git config --global user.name my-github-action-bot
git fetch
git checkout main
git branch set-upsteam-to=origin/main
git pull
ls -la
echo $RANDOM >> random.txt
ls -la
git add -A
git commit -m "Random File"
git push
# - name: Push a random file
# run: |
# pwd
# ls -la
# git init
# git remote add origin "https://$GITHUB_ACTOR:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY.git"
# git config --global user.email my-bot@github-action.com
# git config --global user.name my-github-action-bot
# git fetch
# git checkout main
# git branch set-upsteam-to=origin/main
# git pull
# ls -la
# echo $RANDOM >> random.txt
# ls -la
# git add -A
# git commit -m "Random File"
# git push
- name: Create issue using REST API
run: |
curl --request POST \
Expand Down

0 comments on commit 23a45d6

Please sign in to comment.