Skip to content

Commit

Permalink
added push workflow for dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Long Le authored and Long Le committed Sep 16, 2024
1 parent 0cfe0dc commit 1079418
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/tyk-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
pull_request:
paths:
- 'dev/**'
push:
paths:
- 'dev/**'

jobs:
# Run linter and validation workflow
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/tyk-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,14 @@ jobs:
fi
# Push changes to remote repository
- name: Commit changes
- name: Commit and push changes
if: env.modified == 'true'
env:
ORG_NAME: ${{ secrets.ORG_NAME }}
ORG_EMAIL: ${{ secrets.ORG_EMAIL }}
ACTOR_NAME: ${{ github.actor }}
ACTOR_EMAIL: ${{ github.actor }}@users.noreply.github.com
run: |
git config --global user.name "$ORG_NAME"
git config --global user.email "$ORG_EMAIL"
git config --global user.name "$ACTOR_NAME"
git config --global user.email "$ACTOR_EMAIL"
git add .
git commit -am "CI: Update staging assets"
git push
2 changes: 1 addition & 1 deletion dev/apis/api-2399f2e90953469d50245a7e1c77813e.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"api_definition": {
"id": "66e1f6076e83c700014095a8",
"name": "httpbin",
"name": "httpbin-v2",
"slug": "temp",
"listen_port": 0,
"protocol": "",
Expand Down

0 comments on commit 1079418

Please sign in to comment.