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

Reverted syntax to previous one that worked, with updates #358

Merged
merged 1 commit into from
Mar 17, 2024
Merged
Changes from all commits
Commits
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
90 changes: 28 additions & 62 deletions .github/workflows/add_new_or_updated_feeds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ jobs:
with:
payload: |
{
"channel": "G01BLNPU0M8",
"blocks": [
{
"type": "header",
Expand All @@ -152,43 +153,15 @@ jobs:
"type": "section",
"text": {
"type": "mrkdwn",
"text": "${{ steps.process-csv.outputs.NUMBER_OF_FEEDS }} feed(s) were added or updated in a new branch on the <$GITHUB_SERVER_URL/$GITHUB_REPOSITORY|mobility-database-catalogs> repo.\n\nClick the button on the right to open it in your browser."
},
"accessory": {
"type": "button",
"text": {
"type": "plain_text",
"text": "OPEN BRANCH",
"emoji": true
},
"url": "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/tree/${{ steps.create_branch_name.outputs.BRANCH }}",
"action_id": "button-action"
"text": "${{ steps.process-csv.outputs.NUMBER_OF_FEEDS }} feed(s) were added or updated in a new branch on the <$GITHUB_SERVER_URL/$GITHUB_REPOSITORY|mobility-database-catalogs> repo."
}
},
{
"type": "divider"
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "New branch name:"
},
{
"type": "mrkdwn",
"text": "`${{ steps.create_branch_name.outputs.BRANCH }}`"
}
]
},
{
"type": "context",
"elements": [
{
"type": "mrkdwn",
"text": "➜ See the *<$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID|action run>*."
}
]
"text": {
"type": "mrkdwn",
"text": "New branch name: `${{ steps.create_branch_name.outputs.BRANCH }}`\n\n*Open the new branch:* ${{ GITHUB_SERVER_URL }}/${{ GITHUB_REPOSITORY }}/tree/${{ steps.create_branch_name.outputs.BRANCH }}"
}
}
]
}
Expand All @@ -202,36 +175,29 @@ jobs:
with:
payload: |
{
"attachments": [
"channel": "G01BLNPU0M8",
"blocks": [
{
"color": "#f20000",
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": "❌ FAILED — Add/update feed(s)",
"emoji": true
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "The GitHub action has failed on the <https://github.com/MobilityData/mobility-database-catalogs|mobility-database-catalogs> repo.\n\nClick the button on the right to open the action run in your browser for more details."
},
"accessory": {
"type": "button",
"text": {
"type": "plain_text",
"text": "OPEN ACTION RUN",
"emoji": true
},
"url": "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID",
"action_id": "button-action"
}
}
]
"type": "header",
"text": {
"type": "plain_text",
"text": "❌ FAILED — Add/update feed(s)",
"emoji": true
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "The GitHub action has failed on the <https://github.com/MobilityData/mobility-database-catalogs|mobility-database-catalogs> repo."
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Open the action run:* ${{ GITHUB_SERVER_URL }}/${{ GITHUB_REPOSITORY }}/actions/runs/${{ GITHUB_RUN_ID }}"
}
}
]
}
Expand Down
Loading