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

Testing setting wp version #3584

Draft
wants to merge 85 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
b598b77
Allowed fees to be available in the template and started adding fee t…
sdokus Feb 10, 2025
5518e33
Corrected template override path for My Tickets page
sdokus Feb 11, 2025
49345c4
Merge pull request #3550 from the-events-calendar/fix/ET-2296-order-p…
sdokus Feb 12, 2025
7f9ad7f
Merge branch 'release/T25.batman' into fix/TECTRIA-754-add-booking-fe…
sdokus Feb 13, 2025
1d36598
Update TCMN hash
Camwyn Feb 13, 2025
041c44f
Added fees template
sdokus Feb 13, 2025
6b4161c
Merge branch 'release/T25.batman' into fix/TECTRIA-754-add-booking-fe…
sdokus Feb 13, 2025
11cf2bf
Added changelog
sdokus Feb 13, 2025
7dfe395
Added template to Completed Order email
sdokus Feb 13, 2025
9405d38
Merge branch 'master' into release/T25.batman
Camwyn Feb 14, 2025
dfaad0c
Update test snapshots
sdokus Feb 14, 2025
e05c131
More snapshots updates
sdokus Feb 14, 2025
e555c4c
Merge branch 'release/T25.batman' into fix/TECTRIA-754-add-booking-fe…
sdokus Feb 14, 2025
9b456ac
More snapshots updating
sdokus Feb 14, 2025
3cd846b
Attempted to add tests but need some help
sdokus Feb 14, 2025
1898c66
Add notifications sidebar for ET
pattihis Feb 15, 2025
e190e73
:fast_forward: https://github.com/the-events-calendar/tribe-common/co…
tec-bot Feb 15, 2025
3e8f0ee
Changelogger
pattihis Feb 15, 2025
9a8f642
Merge branch 'feature/add_ian_for_et' of https://github.com/the-event…
pattihis Feb 15, 2025
ff7f2e5
:fast_forward: https://github.com/the-events-calendar/tribe-common/co…
tec-bot Feb 15, 2025
8c5125d
:fast_forward: https://github.com/the-events-calendar/tribe-common/co…
tec-bot Feb 15, 2025
be6806b
:fast_forward: https://github.com/the-events-calendar/tribe-common/co…
tec-bot Feb 15, 2025
58bffa9
Use the filter to pass the page slugs
pattihis Feb 17, 2025
84fe9c1
Merge branch 'feature/add_ian_for_et' of https://github.com/the-event…
pattihis Feb 17, 2025
c0acaa6
:fast_forward: https://github.com/the-events-calendar/tribe-common/co…
tec-bot Feb 17, 2025
f3a288b
Doc comment
pattihis Feb 17, 2025
0b0698d
Merge branch 'feature/add_ian_for_et' of https://github.com/the-event…
pattihis Feb 17, 2025
13f689e
Wording adjustments
pattihis Feb 17, 2025
0330e3f
:fast_forward: https://github.com/the-events-calendar/tribe-common/co…
tec-bot Feb 17, 2025
74466a9
Docblock
pattihis Feb 17, 2025
92993eb
Merge branch 'feature/add_ian_for_et' of https://github.com/the-event…
pattihis Feb 17, 2025
63dbd3d
Spacing
pattihis Feb 17, 2025
dc4dec0
:fast_forward: https://github.com/the-events-calendar/tribe-common/co…
tec-bot Feb 17, 2025
d048bb8
Merge branch 'release/T25.batman' of https://github.com/the-events-ca…
pattihis Feb 17, 2025
bc1a70c
Merge pull request #3563 from the-events-calendar/feature/add_ian_for_et
pattihis Feb 17, 2025
8bf90d9
Included link to virtual events in Series Pass email when the event i…
Sjaure Feb 15, 2025
9700b8c
Resolved bot comments
Sjaure Feb 17, 2025
6da7d58
Update src/views/emails/template-parts/header/head/series-pass-styles…
Sjaure Feb 17, 2025
d682c40
Merge pull request #3564 from the-events-calendar/enhancement/ET-2295…
Sjaure Feb 17, 2025
ea4d6ef
Updated snapshots
sdokus Feb 17, 2025
e3d1364
Merge branch 'release/T25.batman' into enhancement/ET-2295-Include_vi…
sdokus Feb 17, 2025
79f5998
Import all the things
JPry Feb 17, 2025
c6b71d2
Use Faker methods instead of properties, and use null coalesce operator
JPry Feb 17, 2025
092a2b9
Use null coalesce operator for other array items
JPry Feb 17, 2025
6854b5b
Merge pull request #3566 from the-events-calendar/fix/test-deprecatio…
JPry Feb 17, 2025
dd3b01f
Merge branch 'release/T25.batman' into enhancement/ET-2295-Include_vi…
sdokus Feb 17, 2025
ba98250
Merge pull request #3565 from the-events-calendar/enhancement/ET-2295…
sdokus Feb 17, 2025
7583d2f
order of properties
pattihis Feb 17, 2025
d8510c2
Merge pull request #3568 from the-events-calendar/fix_linting_issue
pattihis Feb 17, 2025
35e4e66
Completed email testing
dpanta94 Feb 18, 2025
4f6e0c6
[wip] email templates are being leaked on
dpanta94 Feb 18, 2025
16547fb
Update src/views/emails/purchase-receipt/body.php
sdokus Feb 18, 2025
f043901
Tweaked docblocks
sdokus Feb 18, 2025
cd7baab
Merge branch 'release/T25.batman' into fix/TECTRIA-754-add-booking-fe…
sdokus Feb 18, 2025
63b2dc5
:fast_forward: https://github.com/the-events-calendar/tribe-common/co…
tec-bot Feb 18, 2025
3ac1a34
Merge branch 'release/T25.batman' into fix/TECTRIA-754-add-booking-fe…
sdokus Feb 18, 2025
1ea37c5
Fixing tests
sdokus Feb 18, 2025
4b10191
Adding another test
sdokus Feb 18, 2025
7c47074
Added one more test
sdokus Feb 18, 2025
2a310e4
Merge pull request #3558 from the-events-calendar/fix/TECTRIA-754-add…
sdokus Feb 18, 2025
90c2116
Attendee Model needs to handle when Order is no longer valid
bordoni Feb 19, 2025
a092bb0
Add the changelog for ET-2309
bordoni Feb 19, 2025
c9352c4
Ensure we use label instead of slug for Status
bordoni Feb 19, 2025
ca05471
Merge branch 'release/T25.batman' into fix/ET-2309-prevent-fatal-atte…
bordoni Feb 19, 2025
7da80a0
Update the handling of Attributes
bordoni Feb 19, 2025
665f104
Merge branch 'fix/ET-2309-prevent-fatal-attenddee-model' of github.co…
bordoni Feb 19, 2025
6013c06
Convert zip workflow to use pup (#3535)
Camwyn Feb 19, 2025
2c90199
:fast_forward: https://github.com/the-events-calendar/tribe-common/co…
tec-bot Feb 19, 2025
27ead4e
Update the date for today... This shouldnt be required.
bordoni Feb 19, 2025
97ee85a
Update ft_integration snapshots
bordoni Feb 19, 2025
6ca4b5f
Resolve problems around bad strings
bordoni Feb 19, 2025
888cc71
:recycle: https://github.com/the-events-calendar/tribe-common/commit/…
bordoni Feb 19, 2025
d682d85
Merge branch 'release/T25.batman' into fix/ET-2309-prevent-fatal-atte…
bordoni Feb 19, 2025
57ff7f8
Merge branch 'release/T25.batman' of github.com:the-events-calendar/e…
bordoni Feb 19, 2025
e2b23c1
Typo 2 removed
bordoni Feb 19, 2025
aab4ac9
Merge branch 'fix/ET-2309-prevent-fatal-attenddee-model' of github.co…
bordoni Feb 19, 2025
6043ad7
Update snapshots + Fix code expecting Order to exist
bordoni Feb 19, 2025
58f2da1
Updated to match code standards
bordoni Feb 19, 2025
4afc3b2
Updated to match code standards
bordoni Feb 19, 2025
18c9274
Update snapshots to match the new version of WP
bordoni Feb 19, 2025
44810ec
Update comment language for Attendee Model
bordoni Feb 19, 2025
ff3021c
Update src/Tickets/Commerce/Models/Attendee_Model.php
Camwyn Feb 19, 2025
7172935
Merge pull request #3574 from the-events-calendar/fix/ET-2309-prevent…
bordoni Feb 19, 2025
7168b1d
Merge branch 'master' into release/T25.batman
Camwyn Feb 20, 2025
d63a88e
testing if setting the wp version in .env.testing.slic works
Camwyn Feb 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .distfiles
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/event-tickets.php
/lang/**/*.mo
/lang/**/*.pot
/lang/**/*.txt
/license.txt
/readme.txt
/src/**/*
/vendor/autoload.php
/vendor/composer/*
/vendor/phpqrcode/**/*
/build/**/*
2 changes: 1 addition & 1 deletion .env.testing.slic
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# What version of WordPress we want to install and test against.
# This has to be compatible with the `wp core download` command, see https://developer.wordpress.org/cli/commands/core/download/.
WP_VERSION=latest
WP_VERSION=6.5

# A space-separated list of plugin repositories that will be cloned in the WordPress installation folder and that are
# required for the plugin tests.
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/tests-php-ct1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,6 @@ jobs:
run: |
${SLIC_BIN} up wordpress
${SLIC_BIN} wp core version
${SLIC_BIN} wp core update --force --version=6.5
${SLIC_BIN} wp core version
# ------------------------------------------------------------------------------
# Install and activate TwentyTwenty
# ------------------------------------------------------------------------------
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/tests-php-ft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,6 @@ jobs:
run: |
${SLIC_BIN} up wordpress
${SLIC_BIN} wp core version
${SLIC_BIN} wp core update --force --version=6.5
${SLIC_BIN} wp core version
# ------------------------------------------------------------------------------
# Install and activate TwentyTwenty
# ------------------------------------------------------------------------------
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/tests-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,6 @@ jobs:
run: |
${SLIC_BIN} up wordpress
${SLIC_BIN} wp core version
${SLIC_BIN} wp core update --force --version=6.5
${SLIC_BIN} wp core version
# ------------------------------------------------------------------------------
# Install and activate TwentyTwenty
# ------------------------------------------------------------------------------
Expand Down
265 changes: 125 additions & 140 deletions .github/workflows/zip.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,52 @@
name: 'Package Zip'
name: Generate Zip
on:
pull_request:
workflow_dispatch:
inputs:
final:
description: 'Zip type: 0 = dev, 1 = production'
required: false
default: '0'
slack_channel:
description: 'Slack channel ID to post to'
required: false
slack_thread:
description: 'Slack thread to post to'
required: false
ref:
description: 'Git Commit Ref (branch, tag, or hash)'
default: 'master'
required: true
type: string
production:
description: 'Is this a production build?'
required: false
default: false
type: boolean
final:
description: 'Zip type: 0 = dev, 1 = production'
required: false
default: '0'
jobs:
zip:
generate-zip:
runs-on: ubuntu-latest
steps:
- name: If a pull_request, set final to 0
if: github.event_name == 'pull_request'
run: |
echo "JOB_FINAL=0" >> $GITHUB_ENV
echo "JOB_BRANCH=${{ github.event.pull_request.head.ref }}" >> $GITHUB_ENV
- name: If a workflow_dispatch, set final based on input
if: github.event_name == 'workflow_dispatch'
run: |
echo "JOB_FINAL=${{ github.event.inputs.final }}" >> $GITHUB_ENV
branch=$(echo "${{ github.ref }}" | sed -r "s|refs/heads/||" | sed -r "s|refs/tags/||")
echo "JOB_BRANCH=${branch}" >> $GITHUB_ENV
- name: Setup branch for consumption in subsequent steps
id: settings
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}

# ------------------------------------------------------------------------------
# Set branch to zip, includes Backwards compatibility for "final" vs. "production"
# ------------------------------------------------------------------------------
- name: If a workflow_dispatch, set PRODUCTION_ZIP based on input
if: ${{ github.event_name == 'workflow_dispatch' }}
run: |
echo "branch=${JOB_BRANCH}" >> $GITHUB_OUTPUT
if [ "${{ inputs.production }}" == "true" ] || [ "${{ inputs.final }}" == "1" ]; then
echo "PRODUCTION_ZIP=true" >> $GITHUB_ENV
else
echo "PRODUCTION_ZIP=false" >> $GITHUB_ENV
fi

- name: If a pull_request, force PRODUCTION_ZIP to false
if: ${{ github.event_name == 'pull_request' }}
run: echo "PRODUCTION_ZIP=false" >> $GITHUB_ENV

# -----------------------------------------------------------------------------
# Setup SSH keys and known_hosts
# ------------------------------------------------------------------------------
Expand All @@ -41,6 +56,19 @@ jobs:
key: ${{ secrets.GH_ACTIONS_SSH_KEY }}
name: id_rsa
known_hosts: github.com

# ------------------------------------------------------------------------------
# Checkout jenkins-scripts
# ------------------------------------------------------------------------------
- name: Checkout jenkins-scripts
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_BOT_TOKEN }}
repository: the-events-calendar/jenkins-scripts
ref: main
path: jenkins-scripts
fetch-depth: 1

# ------------------------------------------------------------------------------
# Checkout the repo
# ------------------------------------------------------------------------------
Expand All @@ -50,65 +78,56 @@ jobs:
fetch-depth: 1000
token: ${{ secrets.GH_BOT_TOKEN }}
submodules: recursive
ref: ${{ steps.settings.outputs.branch }}
ref: ${{ inputs.ref }}

# ------------------------------------------------------------------------------
# Setup Node.
# Install and Setup NVM if .nvmrc exists.
# ------------------------------------------------------------------------------
- name: Check for .nvmrc file
id: check-nvmrc
run: echo "::set-output name=exists::$(test -f ${{ github.workspace }}/.nvmrc && echo 'true' || echo 'false')"
run: |
if [ -f "${{ github.workspace }}/.nvmrc" ]; then
echo "nvmrc_exists=true" >> $GITHUB_ENV
else
echo "nvmrc_exists=false" >> $GITHUB_ENV
fi

- uses: actions/setup-node@v3
if: steps.check-nvmrc.outputs.exists == 'true'
- uses: actions/setup-node@v4
if: ${{ env.nvmrc_exists == 'true' }}
with:
node-version-file: '.nvmrc'
cache: 'npm'
cache-dependency-path: package-lock.json

# ------------------------------------------------------------------------------
# Checkout tut
# Install Pup
# ------------------------------------------------------------------------------
- name: Checkout tut
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_BOT_TOKEN }}
repository: the-events-calendar/tut
ref: main
path: tut
fetch-depth: 1
- name: Checkout jenkins-scripts
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_BOT_TOKEN }}
repository: the-events-calendar/jenkins-scripts
ref: main
path: jenkins-scripts
fetch-depth: 1
- name: install pup
run: composer -- pup && cd common && composer -- pup

# ------------------------------------------------------------------------------
# Determine if we need to zip
# Get the version
# ------------------------------------------------------------------------------
- name: Generate Zip Filename
id: file_name
working-directory: .
- name: get version
run: |
REPO_ORG=$GITHUB_ACTOR
REPO_NAME=$( echo $GITHUB_REPOSITORY | sed "s/the-events-calendar\///")
MAIN_FILE=$(jq ".plugins[] | select( .name | test(\"$REPO_NAME\") ) | .main" tut/tut.json | sed 's/"//g' | head -n 1 )
VERSION_LINE=$(jq ".plugins[] | select( .name | test(\"$REPO_NAME\") ) | .version" tut/tut.json | sed 's/"//g' | head -n 1)
ZIP_NAME=$(jq "._zipname" package.json | sed 's/"//g' )
VERSION=$(grep -r "$VERSION_LINE" $MAIN_FILE | head -n 1 | sed -r "s/.*${VERSION_LINE}[^']*'([^']*)'.*/\1/")
HASH=$(git rev-parse --short=8 HEAD)
TIMESTAMP=$(git --no-pager show -s --format=%ct HEAD)
FILENAME="${ZIP_NAME}.${VERSION}-dev-${TIMESTAMP}-${HASH}.zip"
if [ "${JOB_FINAL}" == "1" ]; then
FILENAME="${ZIP_NAME}.${VERSION}.zip"
if [ "${{ env.PRODUCTION_ZIP }}" == "true" ]; then
echo "VERSION=$(composer -- pup get-version)" >> $GITHUB_ENV
else
echo "VERSION=$(composer -- pup get-version --dev)" >> $GITHUB_ENV
fi
echo "value=${FILENAME}" >> $GITHUB_OUTPUT
echo $FILENAME
- name: Check if zip already exists

# ------------------------------------------------------------------------------
# Get initial zip name - pup appends the '-dev' and version automagically
# ------------------------------------------------------------------------------
- name: get initial zip name
id: initial_zip_name
run: echo "PUP_ZIP_NAME=$(composer -- pup zip-name ${{ env.VERSION }})" >> $GITHUB_ENV

# ------------------------------------------------------------------------------
# Check if the zip already exists on s3 - but NOT for production builds
# ------------------------------------------------------------------------------
- name: Check if the zip already exists
if: ${{ env.PRODUCTION_ZIP == 'false' }}
uses: the-events-calendar/action-s3-utility@main
if: github.event.inputs.final != '1'
id: s3_zip
continue-on-error: true
env:
Expand All @@ -118,77 +137,51 @@ jobs:
S3_REGION: ${{ secrets.PACKAGED_ZIP_REGION }}
S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }}
COMMAND: exists
FILE: ${{ steps.file_name.outputs.value }}
FILE: ${{ env.PUP_ZIP_NAME }}.zip

# ------------------------------------------------------------------------------
# Prepare our cache directories
# Run Pup Build on new OR production build
# ------------------------------------------------------------------------------
- name: Get Composer Cache Directory
if: steps.s3_zip.outcome != 'success'
id: get-composer-cache-dir
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
if: steps.s3_zip.outcome != 'success'
id: composer-cache
with:
path: ${{ steps.get-composer-cache-dir.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: pup build
if: ${{ env.PRODUCTION_ZIP == 'true' || steps.s3_zip.outcome != 'success'}}
run: composer -- pup build

# ------------------------------------------------------------------------------
# Ensure composer permissions
# Run Pup Check only on a production build (TBDs and version conflicts)
# ------------------------------------------------------------------------------
- name: Set composer folder permissions
run: |
sudo chown $USER $HOME/.composer
- name: pup check
if: ${{ env.PRODUCTION_ZIP == 'true' }}
run: composer -- pup check

# ------------------------------------------------------------------------------
# Initialize tut
# Run Pup i18n only on a production build (include translation files)
# ------------------------------------------------------------------------------
- name: Set up tut env vars
if: steps.s3_zip.outcome != 'success'
run: |
echo "TUT_BIN=${GITHUB_WORKSPACE}/tut/tut" >> $GITHUB_ENV
- name: Make tut envfile
if: steps.s3_zip.outcome != 'success'
working-directory: ./tut
run: |
touch .env
echo "GITHUB_USER=${{ secrets.GH_BOT_USER }}" >> .env
echo "GITHUB_OAUTH_TOKEN=${{ secrets.GH_BOT_token }}" >> .env
- name: Install tut composer dependencies
if: steps.s3_zip.outcome != 'success'
working-directory: ./tut
run: |
composer install --no-dev -o --ignore-platform-reqs
- name: Install jenkins-scripts composer dependencies
working-directory: ./jenkins-scripts
run: |
composer install --no-dev -o --ignore-platform-reqs
cp script-config-sample.yml script-config.yml
- name: pup i18n
if: ${{ env.PRODUCTION_ZIP == 'true' }}
run: composer -- pup i18n

# ------------------------------------------------------------------------------
# Zip
# Run Pup Package - creates the zip file for new OR production builds
# ------------------------------------------------------------------------------
- name: Package the plugin into a zip
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
id: zip
if: steps.s3_zip.outcome != 'success'
working-directory: ../
- name: pup package
if: ${{env.PRODUCTION_ZIP == 'true' || steps.s3_zip.outcome != 'success'}}
run: composer -- pup package ${{ env.VERSION }}

# ------------------------------------------------------------------------------
# Move the zip file for new OR production builds
# ------------------------------------------------------------------------------
- name: Create the zip_files folder
if: ${{env.PRODUCTION_ZIP == 'true' || steps.s3_zip.outcome != 'success'}}
run: |
REPO_ORG=$GITHUB_ACTOR
REPO_NAME=$( echo $GITHUB_REPOSITORY | sed "s/the-events-calendar\///")
mkdir zip
if [ "${JOB_FINAL}" == "1" ]; then
output=$($TUT_BIN package --plugin=$REPO_NAME --branch="${{ steps.settings.outputs.branch }}" --ignore-view-versions --output=./zip --final -v)
else
output=$($TUT_BIN package --plugin=$REPO_NAME --branch="${{ steps.settings.outputs.branch }}" --ignore-view-versions --output=./zip -v)
fi
echo "$output"
touch ${GITHUB_WORKSPACE}/results.txt
echo "$output" > ${GITHUB_WORKSPACE}/results.txt
mv zip ${GITHUB_WORKSPACE}/zip
- uses: the-events-calendar/action-s3-utility@main
if: steps.s3_zip.outcome != 'success'
mkdir zip_files
cp ${{ env.PUP_ZIP_NAME }}.zip zip_files

# ------------------------------------------------------------------------------
# Upload the zip to S3 for new OR production builds
# ------------------------------------------------------------------------------
- name: Upload plugin artifact
uses: the-events-calendar/action-s3-utility@main
if: ${{env.PRODUCTION_ZIP == 'true' || steps.s3_zip.outcome != 'success'}}
with:
args: --acl public-read --follow-symlinks
env:
Expand All @@ -198,20 +191,12 @@ jobs:
S3_REGION: ${{ secrets.PACKAGED_ZIP_REGION }}
S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }}
COMMAND: sync
SOURCE_DIR: /github/workspace/zip
- name: Maybe prep data for Slack message
if: github.event_name == 'workflow_dispatch' && github.event.inputs.slack_channel != '' && github.event.inputs.slack_thread != '' && steps.s3_zip.outcome == 'success'
working-directory: ../
run: |
touch ${GITHUB_WORKSPACE}/results.txt
echo "Packaging results" >> ${GITHUB_WORKSPACE}/results.txt
echo "-----------------" >> ${GITHUB_WORKSPACE}/results.txt
echo "" >> ${GITHUB_WORKSPACE}/results.txt
echo "Successfully packaged:" >> ${GITHUB_WORKSPACE}/results.txt
echo "* ./zip/\"${{ steps.file_name.outputs.value }}\"" >> ${GITHUB_WORKSPACE}/results.txt
echo "" >> ${GITHUB_WORKSPACE}/results.txt
- name: Maybe notify in Slack
if: github.event_name == 'workflow_dispatch' && github.event.inputs.slack_channel != '' && github.event.inputs.slack_thread != ''
working-directory: ../
SOURCE_DIR: zip_files

# ------------------------------------------------------------------------------
# Send slack message
# ------------------------------------------------------------------------------
- name: Send Slack message
if: ${{ github.event.inputs.slack_channel != '' && github.event.inputs.slack_thread != '' }}
run: |
php ${GITHUB_WORKSPACE}/jenkins-scripts/mt-jenkins package:send-results --channel ${{ github.event.inputs.slack_channel }} --ts ${{ github.event.inputs.slack_thread }} --results-file "${GITHUB_WORKSPACE}/results.txt" --slack-token ${{ secrets.SLACK_TOKEN }} --build-url https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}
curl -X GET "https://utility.theeventscalendar.com/slack-message.php?channel=${{ inputs.slack_channel }}&thread=${{ inputs.slack_thread }}&file=${{ env.PUP_ZIP_NAME }}.zip&secret=${{ secrets.SLACK_PACKAGING_SECRET }}&url=https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"
Loading
Loading