Skip to content

Commit

Permalink
Removed deprecated set-output commands
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscarrollsmith committed Sep 27, 2023
1 parent 229b9bc commit 293c0e3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,11 @@ jobs:
run: |
feedUrl=$(node -e "const fs = require('fs'); const sitedata = JSON.parse(fs.readFileSync('src/customizations/siteproperties.json', 'utf8')); const feedUrl = sitedata.substackUrl + '/feed'; console.log(feedUrl);")
echo "feedUrl=$feedUrl" >> $GITHUB_ENV
echo "::set-output name=feedUrl::$feedUrl"
- name: Fetch RSS Feed
uses: Promptly-Technologies-LLC/rss-fetch-action@v1
with:
feed_url: '${{ steps.get-url.outputs.feedUrl }}'
feed_url: '$feedUrl'
file_path: 'src/components/ui/RssFeed.json'
remove_last_build_date: true

Expand All @@ -49,13 +48,12 @@ jobs:
- name: Set the domain
id: set-domain
run: |
echo "DOMAIN=$(node -e 'console.log(new URL(require("./src/customizations/siteproperties.json").url).hostname)')" >> $GITHUB_ENV
echo "::set-output name=domain::$DOMAIN"
echo "Domain=$(node -e 'console.log(new URL(require("./src/customizations/siteproperties.json").url).hostname)')" >> $GITHUB_ENV
- name: Add CNAME to dist
run: |
if [[ "${{ steps.set-domain.outputs.domain }}" != *.github.io ]]; then
echo ${{ steps.set-domain.outputs.domain }} > ./dist/CNAME
if [[ "$Domain" != *.github.io ]]; then
echo $Domain > ./dist/CNAME
fi
- name: Deploy 🚀
Expand Down

0 comments on commit 293c0e3

Please sign in to comment.