Skip to content

Commit

Permalink
Merge pull request #354 from github/workflow-updates
Browse files Browse the repository at this point in the history
Workflow Updates
  • Loading branch information
GrantBirki authored Jan 14, 2025
2 parents 2d57cf4 + 109818f commit f1804d4
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/actions-config-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- name: actions-config-validation
uses: GrantBirki/json-yaml-validate@e42e6ece9b97f2b220274c909a9a98e380c2c9fd # pin@v3.2.1
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v4
with:
persist-credentials: false

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- name: setup node
uses: actions/setup-node@v4
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/package-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- name: setup node
uses: actions/setup-node@v4
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- name: setup node
uses: actions/setup-node@v4
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/update-latest-release-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,20 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false

- name: git config
run: |
git config user.name github-actions
git config user.email github-actions@github.com
- name: tag new target
run: git tag -f ${{ github.event.inputs.major_version_tag }} ${{ github.event.inputs.source_tag }}
env:
SOURCE_TAG: ${{ github.event.inputs.source_tag }}
MAJOR_VERSION_TAG: ${{ github.event.inputs.major_version_tag }}
run: git tag -f ${MAJOR_VERSION_TAG} ${SOURCE_TAG}

- name: push new tag
run: git push origin ${{ github.event.inputs.major_version_tag }} --force
env:
MAJOR_VERSION_TAG: ${{ github.event.inputs.major_version_tag }}
run: git push origin ${MAJOR_VERSION_TAG} --force

0 comments on commit f1804d4

Please sign in to comment.