File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,13 +30,13 @@ jobs:
3030 - name : Checkout
3131 # This prevents all the forks from attempting to run the interface...
3232 if : env.CROWDIN_API_TOKEN != null
33- uses : actions/checkout@v4
33+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
3434
3535 - name : crowdin-action
3636 # This prevents all the forks from attempting to run the interface...
3737 if : env.CROWDIN_API_TOKEN != null
3838 # You need to pin to a specific version for some reason...
39- uses : crowdin/github-action@v1
39+ uses : crowdin/github-action@2cc7959c565767d6bc118118d6df3b63bf361370 # 2.6.1
4040 with :
4141 # Push sources (the english files) to CrowdIn; do not push translations (non-english) in either direction
4242 upload_sources : true
Original file line number Diff line number Diff line change @@ -34,13 +34,12 @@ jobs:
3434 - name : Checkout
3535 # This prevents all the forks from attempting to run the interface...
3636 if : env.CROWDIN_API_TOKEN != null
37- uses : actions/checkout@v4
37+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
3838
3939 - name : crowdin-action
4040 # This prevents all the forks from attempting to run the interface...
4141 if : env.CROWDIN_API_TOKEN != null
42- # You need to pin to a specific version for some reason...
43- uses : crowdin/github-action@v1
42+ uses : crowdin/github-action@2cc7959c565767d6bc118118d6df3b63bf361370 # 2.6.1
4443 with :
4544 # Push sources (the english files) to CrowdIn; do not push translations (non-english) in either direction
4645 upload_sources : true
Original file line number Diff line number Diff line change 1010 name : PHP-CS-Fixer
1111 runs-on : ubuntu-latest
1212 steps :
13- - uses : actions/checkout@v4
13+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
1414
1515 - name : Get changed files
1616 id : changed-files
Original file line number Diff line number Diff line change @@ -3,19 +3,19 @@ name: PHP Check
33on :
44 push :
55 branches :
6- - release-2.1
6+ - release-3.0
77 pull_request :
88
99jobs :
1010 build :
1111 runs-on : ubuntu-latest
1212
1313 steps :
14- - uses : actions/checkout@v4
14+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
1515
1616 - name : Cache Composer packages
1717 id : composer-cache
18- uses : actions/cache@v4
18+ uses : actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # 4.2.2
1919 with :
2020 path : vendor
2121 key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
@@ -45,17 +45,17 @@ jobs:
4545
4646 name : PHP ${{ matrix.php }} Syntax Check
4747 steps :
48- - uses : actions/checkout@v4
48+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
4949
5050 - name : Setup PHP ${{ matrix.php }}
51- uses : shivammathur/setup-php@v2
51+ uses : shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # 2.32.0
5252 with :
5353 php-version : ${{ matrix.php }}
5454 coverage : none
5555
5656 - name : Cache Composer packages
5757 id : composer-cache
58- uses : actions/cache@v4
58+ uses : actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # 4.2.2
5959 with :
6060 path : vendor
6161 key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
Original file line number Diff line number Diff line change 99
1010 steps :
1111 - name : Checkout repository
12- uses : actions/checkout@v4
12+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
1313
1414 - name : Set current year environment variable
1515 run : echo "CURRENT_YEAR=$(date +'%Y')" >> $GITHUB_ENV
@@ -34,15 +34,15 @@ jobs:
3434 sed -i "s/@copyright [0-9]\{4\}/@copyright ${{ env.CURRENT_YEAR }}/" $file
3535 done
3636
37- - name : Update year in PHP files
37+ - name : Update year in PHP files
3838 run : |
3939 for file in SSI.php proxy.php cron.php index.php other/*.php; do
4040 sed -i "s/@copyright [0-9]\{4\}/@copyright ${{ env.CURRENT_YEAR }}/" $file
4141 sed -i "s/define('SMF_SOFTWARE_YEAR', '[0-9]\{4\}');/define('SMF_SOFTWARE_YEAR', '${{ env.CURRENT_YEAR }}');/" $file
4242 done
4343
4444 - name : Create Pull Request
45- uses : peter-evans/create-pull-request@v7
45+ uses : peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # 7.0.8
4646 with :
4747 token : ${{ secrets.GITHUB_TOKEN }}
4848 commit-message : Update year to ${{ env.CURRENT_YEAR }}
You can’t perform that action at this time.
0 commit comments