Skip to content

Commit

Permalink
chore: set spesific version of checkout action
Browse files Browse the repository at this point in the history
  • Loading branch information
bateau84 committed Jul 4, 2023
1 parent 678fb77 commit 71cf968
Showing 1 changed file with 5 additions and 28 deletions.
33 changes: 5 additions & 28 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
workflow_tag: ${{ steps.workflow_tag.outputs.workflow_tag }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v3.5.3
- name: Get workflow ref
id: workflow_tag
shell: bash
Expand All @@ -76,11 +76,11 @@ jobs:
if: inputs.lint-enabled
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v3.5.3
with:
fetch-depth: 0
- name: Checkout workflow
uses: actions/checkout@v3
uses: actions/checkout@v3.5.3
with:
repository: nrkno/github-workflow-semantic-release
ref: ${{ needs.setup.outputs.workflow_tag }}
Expand Down Expand Up @@ -164,11 +164,11 @@ jobs:
if: inputs.release-enabled && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main')
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3.5.3
with:
fetch-depth: 0
- name: Checkout workflow
uses: actions/checkout@v3
uses: actions/checkout@v3.5.3
with:
repository: nrkno/github-workflow-semantic-release
ref: ${{ needs.setup.outputs.workflow_tag }}
Expand All @@ -187,13 +187,6 @@ jobs:
repo_name=$(sed 's|.*/?||' <<<$GITHUB_ACTION_REPOSITORY)
sed "s/github-workflow-semantic-release/${repo_name}/" .github-workflow-semantic-release/package.json > package.json
cp .github-workflow-semantic-release/package-lock.json .
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 'lts/*'
cache: npm
- name: Install dependencies
run: npm ci
- uses: codfish/[email protected]
id: release
env:
Expand All @@ -208,7 +201,6 @@ jobs:
IFS='.' read -r -a VERSION_ARRAY <<< "${VERSION:1}"
echo "new-release-published=${{ steps.release.outputs.new-release-published }}" >> $GITHUB_OUTPUT
<<<<<<< HEAD
echo "release-version=${VERSION}" >> $GITHUB_OUTPUT
echo "release-major=${VERSION_ARRAY[0]}" >> $GITHUB_OUTPUT
echo "release-minor=${VERSION_ARRAY[1]}" >> $GITHUB_OUTPUT
Expand All @@ -218,15 +210,6 @@ jobs:
echo "${{ steps.release.outputs.release-notes }}" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
=======
echo "release-version=${VERSION:1}" >> $GITHUB_OUTPUT
echo "release-major=${VERSION_ARRAY[0]}" >> $GITHUB_OUTPUT
echo "release-minor=${VERSION_ARRAY[1]}" >> $GITHUB_OUTPUT
echo "release-patch=${VERSION_ARRAY[2]}" >> $GITHUB_OUTPUT
echo "release-notes<<EOF" >> $GITHUB_OUTPUT
echo ${{ steps.release.outputs.release-notes }} >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
>>>>>>> ec2b44a (feat: always output version)
echo "type=${{ steps.release.outputs.type }}" >> $GITHUB_OUTPUT
echo "channel=${{ steps.release.outputs.channel }}" >> $GITHUB_OUTPUT
echo "git-head=${{ steps.release.outputs.git-head }}" >> $GITHUB_OUTPUT
Expand All @@ -238,17 +221,11 @@ jobs:
echo "release-major=${{ steps.release.outputs.release-major }}" >> $GITHUB_OUTPUT
echo "release-minor=${{ steps.release.outputs.release-minor }}" >> $GITHUB_OUTPUT
echo "release-patch=${{ steps.release.outputs.release-patch }}" >> $GITHUB_OUTPUT
<<<<<<< HEAD
echo "release-notes<<EOF" >> $GITHUB_OUTPUT
echo "${{ steps.release.outputs.release-notes }}" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
=======
echo "release-notes<<EOF" >> $GITHUB_OUTPUT
echo ${{ steps.release.outputs.release-notes }} >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
>>>>>>> ec2b44a (feat: always output version)
echo "type=${{ steps.release.outputs.type }}" >> $GITHUB_OUTPUT
echo "channel=${{ steps.release.outputs.channel }}" >> $GITHUB_OUTPUT
echo "git-head=${{ steps.release.outputs.git-head }}" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 71cf968

Please sign in to comment.