Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanyeye authored Jan 25, 2023
1 parent 94b2bad commit 2278346
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,16 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set variables
run: |
echo "RELEASE_NAME=Released on $(date +%Y.%m.%d-%H:%M)" >> $GITHUB_ENV
echo "TAG_NAME=$(date +%Y%m%d%H%M)" >> $GITHUB_ENV
ls -al
echo "custom_rules=https://raw.githubusercontent.com/$GITHUB_REPOSITORY/main/rules.txt" >> $GITHUB_ENV
echo "microsoft_rules=https://raw.githubusercontent.com/$GITHUB_REPOSITORY/main/microsoft-rules.txt" >> $GITHUB_ENV
echo "global_network_rules=https://raw.githubusercontent.com/$GITHUB_REPOSITORY/main/global-network-rules.txt" >> $GITHUB_ENV
echo "domestic_media_rules=https://raw.githubusercontent.com/$GITHUB_REPOSITORY/main/domestic-media-rules.txt" >> $GITHUB_ENV
echo "foreign_media_rules=https://raw.githubusercontent.com/$GITHUB_REPOSITORY/main/foreign-media-rules.txt" >> $GITHUB_ENV
echo "blacklist_rules=https://raw.githubusercontent.com/$GITHUB_REPOSITORY/main/blacklist-rules.txt" >> $GITHUB_ENV
for x in $(find $pwd -name "*rules.txt" | xargs ls -d);
do
file=${x#*./}
echo "${file%.txt}=https://raw.githubusercontent.com/$GITHUB_REPOSITORY/main/${file}" >> $GITHUB_ENV;
done
shell: bash

- name: Generate rules.txt file
Expand All @@ -33,6 +31,10 @@ jobs:
curl -sSL ${domestic_media_rules} > domestic-media-rules.txt
curl -sSL ${foreign_media_rules} > foreign-media-rules.txt
curl -sSL ${blacklist_rules} > blacklist-rules.txt
for x in $(find $pwd -name "*rules.txt" | xargs ls -d);
do
echo ${x}
done
- name: Move files to publish directory
run: |
Expand Down

0 comments on commit 2278346

Please sign in to comment.