Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TokenList Updated #28

Merged
merged 9 commits into from
Feb 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/weak-items-perform.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@infinityswapofficial/token-lists': patch
---

Updated tokenlist with sns token
34 changes: 20 additions & 14 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,29 @@ jobs:
yarn install --frozen-lockfile
chmod +x ./run.sh
./run.sh
npm run prettier

shell: bash

- name: Commit Tokenlist Update
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Updated TokenList file
branch: ${{ github.head_ref }}

- name: Run Prettier
run: npm run prettier

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Applied formatting changes
branch: ${{ github.head_ref }}
- name: Commit Update
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
if [ -n "$(git status --porcelain)" ]; then
git pull
git checkout -f "Automated-TokenList-Update"
./run.sh
npm run prettier
git add .
git commit -m "Updated TokenList" ||echo "Branch is up to date"
git push -u origin "Automated-TokenList-Update"
gh pr create -B main -H Automated-TokenList-Update --title 'TokenList Updated' --body 'PR created by Github Actions. Review PR and add changeset to release' || echo "PR already exists"
else
echo "Repo is clean"
fi
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

release:
if: ${{ github.event_name == 'push' }}
Expand Down
38 changes: 23 additions & 15 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Redeploy Everyday
name: Scheduled Workflow
on:
schedule:
- cron: '0 0 * * 1'
Expand Down Expand Up @@ -26,33 +26,41 @@ jobs:
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18.x'
cache: 'yarn'

- name: Run Script
run: |
yarn install --frozen-lockfile
chmod +x ./run.sh
./run.sh
npm run prettier

shell: bash

- name: Commit Tokenlist Update
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Updated TokenList file
branch: ${{ github.head_ref }}

- name: Run Prettier
run: npm run prettier

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Applied formatting changes
branch: ${{ github.head_ref }}
- name: Commit Update
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
if [ -n "$(git status --porcelain)" ]; then
git pull
git checkout -f "Automated-TokenList-Update"
./run.sh
npm run prettier
git add .
git commit -m "Updated TokenList" ||echo "Branch is up to date"
git push -u origin "Automated-TokenList-Update"
gh pr create -B main -H Automated-TokenList-Update --title 'TokenList Updated' --body 'PR created by Github Actions. Review PR and add changeset to release' || echo "PR already exists"
else
echo "Repo is clean"
fi
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

release:
if: ${{ github.ref == 'refs/heads/main' }}
Expand Down