-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: set spesific version of checkout action
- Loading branch information
Showing
1 changed file
with
5 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 }} | ||
|
@@ -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 }} | ||
|
@@ -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: | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|