Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update workflow with actions/checkout@v3 to actions/checkout@v4 #21872

Merged
merged 2 commits into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/buildtrackerjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
id: vars
run: |
PR=$( echo "${{ github.event.comment.issue_url }}" | grep -oE 'issues/([0-9]+)$' | cut -d'/' -f 2 )

PR_INFO=$( curl \
--request GET \
--header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
Expand All @@ -34,13 +34,13 @@ jobs:
REF=$(echo "${PR_INFO}" | jq -r .head.ref)
BASE=$(echo "${PR_INFO}" | jq -r .head.repo.full_name)
STATE=$(echo "${PR_INFO}" | jq -r .state)

if [[ $STATE == "closed" ]]
then
echo "Pull Request already closed."
exit 0;
fi

if [[ $BASE != $GITHUB_REPOSITORY ]]
then
echo "It's only possible to update local branches"
Expand All @@ -54,14 +54,14 @@ jobs:
distribution: 'zulu'
java-version: '9'
if: steps.vars.outputs.branch != ''
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ steps.vars.outputs.branch }}
lfs: false
persist-credentials: false
if: steps.vars.outputs.branch != ''
- name: Prepare git config
run: |
run: |
cat <<- EOF > $HOME/.netrc
machine github.com
login $GITHUB_ACTOR
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/buildvue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
echo "islocalbranch=$(expr $BASE == $GITHUB_REPOSITORY)" >> $GITHUB_OUTPUT
echo "branch=$REF" >> $GITHUB_OUTPUT
echo "base=$BASE_SHA" >> $GITHUB_OUTPUT
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
lfs: false
persist-credentials: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/buildwoff2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
echo "islocalbranch=$(expr $BASE == $GITHUB_REPOSITORY)" >> $GITHUB_OUTPUT
echo "branch=$REF" >> $GITHUB_OUTPUT
echo "base=$BASE_SHA" >> $GITHUB_OUTPUT
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
lfs: false
persist-credentials: false
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/composer-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: '5.x-dev'
lfs: false
persist-credentials: false
- name: Install composer dependencies
run: composer install
- name: Prepare branches
run: |
run: |
cat <<- EOF > $HOME/.netrc
machine github.com
login $GITHUB_ACTOR
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:
git push --set-upstream origin composer-update
shell: bash
if: steps.update.outputs.message
- name: Create PR
- name: Create PR
run: |
message=
curl \
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/matomo-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- php: '8.3'
adapter: 'PDO_MYSQL'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
lfs: false
persist-credentials: false
Expand All @@ -66,7 +66,7 @@ jobs:
runs-on: ubuntu-20.04
timeout-minutes: 15
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
lfs: false
persist-credentials: false
Expand All @@ -82,7 +82,7 @@ jobs:
runs-on: ubuntu-20.04
timeout-minutes: 15
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
lfs: false
persist-credentials: false
Expand All @@ -101,7 +101,7 @@ jobs:
matrix:
parts: [ 0,1,2,3 ]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
lfs: true
persist-credentials: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/phpcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
name: PHPCS
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
lfs: false
persist-credentials: false
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Matomo Release Action
#
#
# Required GitHub secrets:
#
#
# RELEASE_PASSWORD | password that needs to be provided to start the action
# GPG_CERTIFICATE | ASCII armored or Base64 encoded GPG certificate that is used to create the signatures for the archives
# GPG_CERTIFICATE_PASS | Passphrase of the GPG key
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
with:
script: |
core.setFailed('User is not allowed to release.')
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
lfs: false
- name: Import GPG key
Expand Down Expand Up @@ -137,7 +137,7 @@ jobs:
- Latest stable production release can be found at https://matomo.org/download/ ([learn more](https://matomo.org/docs/installation/)) (recommended)
- Beta and Release Candidate releases can be found at https://builds.matomo.org/ ([learn more](https://matomo.org/faq/how-to-update/faq_159/))"
fi

echo "version=$version" >> $GITHUB_OUTPUT
echo 'body<<EOF' >> $GITHUB_OUTPUT
echo "$body" >> $GITHUB_OUTPUT
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stylelinter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
name: stylelinter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
lfs: false
persist-credentials: false
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/submodules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: '5.x-dev'
lfs: false
persist-credentials: false
- name: Prepare branches
run: |
run: |
cat <<- EOF > $HOME/.netrc
machine github.com
login $GITHUB_ACTOR
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
git push --set-upstream origin submodules
shell: bash
if: steps.changes.outputs.message
- name: Create PR
- name: Create PR
run: |
curl \
--request POST \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-font.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
check:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Compare stylesheet to base branch
run: |
if [[ $(wget -O - -o /dev/null https://raw.githubusercontent.com/matomo-org/matomo/$GITHUB_BASE_REF/plugins/Morpheus/stylesheets/base/icons.css | grep -m1 -- "format('woff2')") == $(grep -m1 -- "format('woff2')" plugins/Morpheus/stylesheets/base/icons.css) ]]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-intl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
with:
script: |
core.setFailed('Unable to find current CLDR version')
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
lfs: false
persist-credentials: false
Expand Down