Skip to content

Commit

Permalink
2022.04.22:
Browse files Browse the repository at this point in the history
* changed: action.yml: code cleanup
* changed: action.yml: minor refactor
  • Loading branch information
andry81 committed Apr 30, 2022
1 parent 20f14e2 commit 5eab672
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ jobs:
# ENABLE_GENERATE_CHANGELOG_FILE=1
# ENABLE_COMMIT_MESSAGE_DATE_WITH_TIME=1
# ENABLE_PRINT_CURL_RESPONSE_ON_ERROR=1
# CHANGELOG_FILE=changelog.txt
```

> :information_source: You can use `secrets.READ_STATS_TOKEN` instead of `secrets.WRITE_STATS_TOKEN` as long as both repositories under the same repository owner.
Expand Down
14 changes: 11 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ inputs:
# ENABLE_GENERATE_CHANGELOG_FILE=1
# ENABLE_PRINT_CURL_RESPONSE_ON_ERROR=1
# ENABLE_COMMIT_MESSAGE_DATE_WITH_TIME=1 # insert the time string in format HH:MMZ additionally after the date in each commit message
# CHANGELOG_FILE=changelog.txt

runs:
using: "composite"
Expand Down Expand Up @@ -107,18 +108,24 @@ runs:
shell: bash
run: |
$GH_WORKFLOW_ROOT/bash/github/set-env-from-args.sh \
"changelog_dir=$GITHUB_WORKSPACE/inpage-downloads/${{ inputs.output_repo_dir }}" \
"CHANGELOG_FILE=$GITHUB_WORKSPACE/inpage-downloads/${{ inputs.output_repo_dir }}/${{ env.CHANGELOG_FILE }}" \
"stats_dir=$GITHUB_WORKSPACE/inpage-downloads/${{ inputs.output_repo_dir }}" \
"stats_json=$GITHUB_WORKSPACE/inpage-downloads/${{ inputs.output_repo_dir }}/latest.json" \
"stat_entity_path=${{ inputs.stat_entity_path }}" \
"query_url=${{ inputs.query_url }}" \
"downloads_sed_regexp=${{ inputs.downloads_sed_regexp }}" \
"curl_flags=${{ inputs.curl_flags }}"
- name: declare local variables
shell: bash
run: |
$GH_WORKFLOW_ROOT/bash/github/set-env-from-args.sh \
"changelog_dir=${CHANGELOG_FILE%/*}"
- name: allocate directories
shell: bash
run: |
echo "WORKFLOW_TEMPDIR=$(mktemp -d)" >> $GITHUB_ENV
$GH_WORKFLOW_ROOT/bash/github/set-env-from-args.sh \
"WORKFLOW_TEMPDIR=$(mktemp -d)"
- name: head annotations
shell: bash
Expand All @@ -136,6 +143,7 @@ runs:

mkdir-p: >-
${{ inputs.output_repo_dir }}
${{ env.changelog_dir }}
- name: accumulate ${{ inputs.stat_entity_path }}
id: accum-downloads
Expand Down
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2022.04.22:
* changed: action.yml: code cleanup
* changed: action.yml: minor refactor

2022.04.19:
* changed: README.md: readme update

Expand Down

0 comments on commit 5eab672

Please sign in to comment.