From 3d1b5e078a85df99db0cb2441cd4309b09d86253 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Sep 2023 10:32:33 +0200 Subject: [PATCH 1/2] Bump actions/checkout from 3 to 4 (#302) Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/git-auto-commit.yml | 2 +- .github/workflows/linter.yml | 2 +- .github/workflows/tests.yml | 2 +- .github/workflows/update-changelog.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/git-auto-commit.yml b/.github/workflows/git-auto-commit.yml index a217b1c..d7db234 100644 --- a/.github/workflows/git-auto-commit.yml +++ b/.github/workflows/git-auto-commit.yml @@ -16,7 +16,7 @@ jobs: contents: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use git-auto-commit-action id: "auto-commit-action" diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 17d4c8e..e355374 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -9,7 +9,7 @@ jobs: steps: - name: Checkout Code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Lint Code Base uses: github/super-linter@v5 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 48f3a84..35ee1e2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install testing dependencies run: yarn install diff --git a/.github/workflows/update-changelog.yaml b/.github/workflows/update-changelog.yaml index 02c4e66..691e6dc 100644 --- a/.github/workflows/update-changelog.yaml +++ b/.github/workflows/update-changelog.yaml @@ -16,7 +16,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: master From 10944650cd54362ae9200814cbb06c657132951d Mon Sep 17 00:00:00 2001 From: Stefan Zweifel Date: Wed, 4 Oct 2023 15:33:04 +0200 Subject: [PATCH 2/2] Use actions/checkout v4 in examples https://github.com/stefanzweifel/git-auto-commit-action/pull/302#issuecomment-1745974288 --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index ec585e6..9c2d9e0 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ jobs: contents: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 # Other steps that change files in the repository @@ -144,7 +144,7 @@ jobs: contents: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.head_ref }} @@ -201,7 +201,7 @@ You must use `action/checkout@v2` or later versions to check out the repository. In non-`push` events, such as `pull_request`, make sure to specify the `ref` to check out: ```yaml -- uses: actions/checkout@v3 +- uses: actions/checkout@v4 with: ref: ${{ github.head_ref }} ``` @@ -219,7 +219,7 @@ You can change this by creating a new [Personal Access Token (PAT)](https://gith storing the token as a secret in your repository and then passing the new token to the [`actions/checkout`](https://github.com/actions/checkout#usage) Action step. ```yaml -- uses: actions/checkout@v3 +- uses: actions/checkout@v4 with: token: ${{ secrets.PAT }} ``` @@ -319,7 +319,7 @@ jobs: contents: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: # Checkout the fork/head-repository and push changes to the fork. # If you skip this, the base repository will be checked out and changes @@ -366,7 +366,7 @@ jobs: php-cs-fixer: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Run php-cs-fixer uses: docker://oskarstark/php-cs-fixer-ga @@ -408,7 +408,7 @@ Finally, you have to use `push_options: '--force'` to overwrite the git history The steps in your workflow might look like this: ```yaml -- uses: actions/checkout@master +- uses: actions/checkout@4 with: # Fetch the last 2 commits instead of just 1. (Fetching just 1 commit would overwrite the whole history) fetch-depth: 2 @@ -452,7 +452,7 @@ First, you have to create a new [Personal Access Token (PAT)](https://github.com store the token as a secret in your repository and pass the new token to the [`actions/checkout`](https://github.com/actions/checkout#usage) Action step. ```yaml -- uses: actions/checkout@v3 +- uses: actions/checkout@v4 with: token: ${{ secrets.PAT }} ```