.github/workflows/release.yaml in jekyll-linkpreview-0.6.0 vs .github/workflows/release.yaml in jekyll-linkpreview-0.7.0
- old
+ new
@@ -15,11 +15,11 @@
uses: actions/checkout@v3
with:
fetch-depth: 2
# See https://github.com/actions/runner-images/issues/6775.
- name: Suppress 'detected dubious ownership' error.
- run: git config --global --add safe.directory /__w/jekyll-linkpreview/jekyll-linkpreview
+ run: git config --global --add safe.directory ${GITHUB_WORKSPACE}
- id: check-release
name: Decide whether to release
run: |
set +e
git diff --exit-code --quiet HEAD~1 -- lib/jekyll-linkpreview/version.rb
@@ -37,20 +37,20 @@
steps:
- name: Checkout
uses: actions/checkout@v3
# See https://github.com/actions/runner-images/issues/6775.
- name: Suppress 'detected dubious ownership' error.
- run: git config --global --add safe.directory /__w/jekyll-linkpreview/jekyll-linkpreview
+ run: git config --global --add safe.directory ${GITHUB_WORKSPACE}
- env:
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
name: Set credentials for RubyGems
run: |
mkdir ~/.gem
echo :rubygems_api_key: ${RUBYGEMS_API_KEY} > ~/.gem/credentials
chmod 0600 ~/.gem/credentials
- name: Configure git
run: |
- git config --global user.email "yusuke.nishioka.0713@gmail..com"
+ git config --global user.email "yusuke.nishioka.0713@gmail.com"
git config --global user.name "Yusuke Nishioka"
- name: Install dependencies
run: bundle install
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}