diff --git a/git workflow/svg.yml b/git workflow/svg.yml new file mode 100644 index 0000000..cd3b4d5 --- /dev/null +++ b/git workflow/svg.yml @@ -0,0 +1,56 @@ +name: GitHub-Profile-3D-Contrib +on: + # Schedule updates (each day 24 点 00 分自动执行一次) + # corn 参考 + # https://img2020.cnblogs.com/blog/740516/202012/740516-20201203230232201-913405527.png + # https://www.cnblogs.com/xgqfrms/p/14079442.html + schedule: [{cron: "59 23 * * *"}] + # Lines below let you run workflow manually and on each commit + workflow_dispatch: + push: {branches: ["master"]} + +# https://docs.github.com/en/actions/learn-github-actions/contexts +# https://docs.github.com/en/actions/learn-github-actions/contexts#github-context + +# https://github.com/xgqfrms/xgqfrms/settings/secrets/actions +# - uses: actions/checkout@v3 + +# https://docs.github.com/en/actions/learn-github-actions/environment-variables + +# https://github.com/xgqfrms/github-profile-3d-contrib-2022 + +jobs: + build: + runs-on: ubuntu-latest + name: generate-github-profile-3d-contrib + steps: + # - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + - uses: xgqfrms/github-profile-3d-contrib-2022 + # - uses: yoshi389111/github-profile-3d-contrib@0.4.0 + env: + GITHUB_TOKEN: ${{ secrets.METRICS_TOKEN }} + USERNAME: ${{ github.repository_owner }} + MAX_REPOS: 250 + # 执行单行命令 ??? env + # - name: "Hello env $EMAIL" + # run: echo "$EMAIL" + # - name: "Hello env $FLAG" + # if: ${{ env.FLAG == 'true' }} + # run: echo "$FLAG" + - name: Print env ❓ + run: env | sort + # 执行多行命令 + - name: Commit & Push + run: | + git config user.name ${{ github.repository_owner }} + git config user.email ${{ secrets.EMAIL }} + git add -A . + git commit -m "feat: update GitHub 3D Profile" + git push + # run: | + # git config user.name ${{ github.repository_owner }} + # git config user.email xgqfrms@xgqfrms.xyz + # git add -A . + # git commit -m "feat: update GitHub 3D Profile" + # git push \ No newline at end of file diff --git a/git-cherry-pick.md b/git-cherry-pick.md new file mode 100644 index 0000000..0c82e4a --- /dev/null +++ b/git-cherry-pick.md @@ -0,0 +1,47 @@ +# git cherry-pick + +`cherry-pick` + +```sh +$ git cherry-pick -h + +usage: git cherry-pick [] ... + or: git cherry-pick + + --quit end revert or cherry-pick sequence + --continue resume revert or cherry-pick sequence + --abort cancel revert or cherry-pick sequence + --skip skip current commit and continue + --cleanup how to strip spaces and #comments from message + -n, --no-commit don't automatically commit + -e, --edit edit the commit message + -s, --signoff add a Signed-off-by trailer + -m, --mainline + select mainline parent + --rerere-autoupdate update the index with reused conflict resolution if possible + --strategy + merge strategy + -X, --strategy-option