File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ name : test
2+
3+ on :
4+ push :
5+ tags :
6+ - test*
7+
8+ permissions :
9+ contents : write
10+
11+ jobs :
12+ release :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v4
16+ with :
17+ ref : referer-json
18+ - name : Get datetime
19+ id : datetime
20+ run : echo "datetime=$(date "+%Y-%m-%d-%H%M%S")" >> "$GITHUB_ENV"
21+ - name : Convert yaml to json
22+ run : python .github/workflows/lib/yaml_to_json.py resources/referers.yml resources/referers-${{ steps.datetime.outputs.datetime }}.json
23+ - name : Prepare latest json
24+ run : cp resources/referers-${{ steps.datetime.outputs.datetime }}.json resources/referers-latest.json
25+ - name : Commit and push new json files
26+ run : |
27+ git config --local user.email "github-actions[bot]@users.noreply.github.com"
28+ git config --local user.name "github-actions[bot]"
29+ git add resources/referers-${{ steps.datetime.outputs.datetime }}.json resources/referers-latest.json
30+ git commit -m "Add referers-${{ steps.datetime.outputs.datetime }}.json"
31+ git push
32+
You can’t perform that action at this time.
0 commit comments