Merge pull request #119 from Behnke02/main #328
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Clone Count | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
run: | |
name: Make GitHub Traffic to Badge | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Set Traffic | |
id: traffic | |
uses: yi-Xu-0100/[email protected] | |
with: | |
my_token: ${{ secrets.TRAFFIC_TOKEN }} | |
#(default) static_list: ${{ github.repository }} | |
#(default) traffic_branch: traffic | |
#(default) views_color: brightgreen | |
#(default) clones_color: brightgreen | |
#(default) views_week_color: brightgreen | |
#(default) clones_week_color: brightgreen | |
#(default) total_views_color: brightgreen | |
#(default) total_clones_color: brightgreen | |
#(default) total_views_week_color: brightgreen | |
#(default) total_clones_week_color: brightgreen | |
#(default) logo: github | |
year: 2023 | |
- name: Deploy | |
uses: peaceiris/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_branch: ${{ steps.traffic.outputs.traffic_branch }} | |
publish_dir: ${{ steps.traffic.outputs.traffic_path }} | |
user_name: 'github-actions[bot]' | |
user_email: 'github-actions[bot]@users.noreply.github.com' | |
full_commit_message: ${{ github.event.head_commit.message }} | |
- name: Show Traffic Data | |
run: | | |
echo ${{ steps.traffic.outputs.traffic_branch }} | |
echo ${{ steps.traffic.outputs.traffic_path }} | |
cd ${{ steps.traffic.outputs.traffic_path }} | |
ls -a | |